From 357400c5ac4e772e5b8c4ccb5562b935eb949782 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sun, 27 Mar 2016 17:01:49 +1100 Subject: [PATCH] Fix block break road (sponge) --- .../java/com/plotsquared/sponge/listener/MainListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sponge/src/main/java/com/plotsquared/sponge/listener/MainListener.java b/Sponge/src/main/java/com/plotsquared/sponge/listener/MainListener.java index c1e13317e..6d2ee1f2f 100644 --- a/Sponge/src/main/java/com/plotsquared/sponge/listener/MainListener.java +++ b/Sponge/src/main/java/com/plotsquared/sponge/listener/MainListener.java @@ -431,7 +431,7 @@ public class MainListener { Location loc = SpongeUtil.getLocation(worldname, first.getOriginal().getPosition()); Plot plot = loc.getPlot(); if (plot == null) { - if (loc.getPlotAbs() == null) { + if (!loc.isPlotArea()) { return; } event.setCancelled(true); @@ -479,7 +479,7 @@ public class MainListener { Location loc = SpongeUtil.getLocation(worldname, pos.getPosition()); Plot plot = loc.getPlot(); if (plot == null) { - if (loc.getPlotAbs() == null) { + if (!loc.isPlotArea()) { return; } if (!Permissions.hasPermission(pp, C.PERMISSION_ADMIN_DESTROY_ROAD)) {