From 44e8efda36eb73c1145747256be869eb9de969a7 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Sat, 19 May 2012 08:00:34 -0600 Subject: [PATCH] Check for sticky pistons --- src/main/java/com/gmail/nossr50/listeners/BlockListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/BlockListener.java b/src/main/java/com/gmail/nossr50/listeners/BlockListener.java index 3effe3eb4..52bc29cee 100644 --- a/src/main/java/com/gmail/nossr50/listeners/BlockListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/BlockListener.java @@ -80,7 +80,7 @@ public class BlockListener implements Listener { public void onBlockPistonRetract(BlockPistonRetractEvent event) { Block block = event.getRetractLocation().getBlock(); - if (mcMMO.placeStore.isTrue(block)) { + if (mcMMO.placeStore.isTrue(block) && event.isSticky()) { mcMMO.placeStore.setFalse(block); mcMMO.placeStore.setTrue(event.getBlock().getRelative(event.getDirection())); }