From 77b0dd725c759e859c8366b0bf0270eeaf7f3f92 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Sat, 25 Feb 2012 04:07:07 -0800 Subject: [PATCH] Fixing unwanted block data changes --- .../java/com/gmail/nossr50/listeners/mcBlockListener.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/mcBlockListener.java b/src/main/java/com/gmail/nossr50/listeners/mcBlockListener.java index d2679b07e..e7a584420 100644 --- a/src/main/java/com/gmail/nossr50/listeners/mcBlockListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/mcBlockListener.java @@ -84,6 +84,8 @@ public class mcBlockListener implements Listener if(m.shouldBeWatched(mat)) { //Only needed for blocks that use their block data (wood, pumpkins, etc.) + boolean shouldBeChanged = true; + switch(mat){ case CACTUS: case GLOWING_REDSTONE_ORE: @@ -93,6 +95,7 @@ public class mcBlockListener implements Listener case REDSTONE_ORE: case SUGAR_CANE_BLOCK: case VINE: + shouldBeChanged = false; plugin.misc.blockWatchList.add(block); break; case BROWN_MUSHROOM: @@ -103,7 +106,9 @@ public class mcBlockListener implements Listener plugin.fastChangeQueue.push(block); break; } - plugin.changeQueue.push(block); + + if(shouldBeChanged) + plugin.changeQueue.push(block); } if(id == LoadProperties.anvilID && LoadProperties.anvilmessages)