From 1667fcdf437cc26d5e16484da0084ef659306e92 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Fri, 3 Apr 2015 22:20:08 +1100 Subject: [PATCH] I've got my own thank you very much. closes #240 --- .../intellectualcrafters/plot/listeners/PlayerEvents.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/PlayerEvents.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/PlayerEvents.java index b598d03e0..f8d5e39b2 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/PlayerEvents.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/PlayerEvents.java @@ -109,6 +109,7 @@ import com.intellectualcrafters.plot.util.bukkit.UUIDHandler; */ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotListener implements Listener { + @EventHandler public void onRedstoneEvent(BlockRedstoneEvent event) { Block block = event.getBlock(); Location loc = BukkitUtil.getLocation(block.getLocation()); @@ -153,11 +154,13 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi case ACACIA_FENCE_GATE: case DARK_OAK_FENCE_GATE: case POWERED_RAIL: { - event.setNewCurrent(0); + return; } } + event.setNewCurrent(0); } + @EventHandler public void onPhysicsEvent(BlockPhysicsEvent event) { Block block = event.getBlock(); Location loc = BukkitUtil.getLocation(block.getLocation());