From cfa3d34dff1d92b88060de6b6093a46d41dc3fb3 Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Fri, 14 Mar 2014 13:43:32 +0100 Subject: [PATCH] Fix important bug regarding 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 de028e9a4..d336faee2 100644 --- a/src/main/java/com/gmail/nossr50/listeners/BlockListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/BlockListener.java @@ -67,7 +67,7 @@ public class BlockListener implements Listener { for (Block b : blocks) { if (BlockUtils.shouldBeWatched(b.getState()) && mcMMO.getPlaceStore().isTrue(b)) { b.getRelative(direction).setMetadata(mcMMO.blockMetadataKey, mcMMO.metadataValue); - if (b.equals(futureEmptyBlock)) { + if (b.equals(futureEmptyBlock) && futureEmptyBlock.getType() == Material.AIR) { mcMMO.getPlaceStore().setFalse(b); } }