Fix block break road (sponge)

This commit is contained in:
Jesse Boyd 2016-03-27 17:01:49 +11:00
parent 32e10fbff6
commit 357400c5ac

View File

@ -431,7 +431,7 @@ public class MainListener {
Location loc = SpongeUtil.getLocation(worldname, first.getOriginal().getPosition()); Location loc = SpongeUtil.getLocation(worldname, first.getOriginal().getPosition());
Plot plot = loc.getPlot(); Plot plot = loc.getPlot();
if (plot == null) { if (plot == null) {
if (loc.getPlotAbs() == null) { if (!loc.isPlotArea()) {
return; return;
} }
event.setCancelled(true); event.setCancelled(true);
@ -479,7 +479,7 @@ public class MainListener {
Location loc = SpongeUtil.getLocation(worldname, pos.getPosition()); Location loc = SpongeUtil.getLocation(worldname, pos.getPosition());
Plot plot = loc.getPlot(); Plot plot = loc.getPlot();
if (plot == null) { if (plot == null) {
if (loc.getPlotAbs() == null) { if (!loc.isPlotArea()) {
return; return;
} }
if (!Permissions.hasPermission(pp, C.PERMISSION_ADMIN_DESTROY_ROAD)) { if (!Permissions.hasPermission(pp, C.PERMISSION_ADMIN_DESTROY_ROAD)) {