Fixing unwanted block data changes

This commit is contained in:
nossr50 2012-02-25 04:07:07 -08:00
parent f850c0ead6
commit 77b0dd725c

View File

@ -84,6 +84,8 @@ public class mcBlockListener implements Listener
if(m.shouldBeWatched(mat)) if(m.shouldBeWatched(mat))
{ {
//Only needed for blocks that use their block data (wood, pumpkins, etc.) //Only needed for blocks that use their block data (wood, pumpkins, etc.)
boolean shouldBeChanged = true;
switch(mat){ switch(mat){
case CACTUS: case CACTUS:
case GLOWING_REDSTONE_ORE: case GLOWING_REDSTONE_ORE:
@ -93,6 +95,7 @@ public class mcBlockListener implements Listener
case REDSTONE_ORE: case REDSTONE_ORE:
case SUGAR_CANE_BLOCK: case SUGAR_CANE_BLOCK:
case VINE: case VINE:
shouldBeChanged = false;
plugin.misc.blockWatchList.add(block); plugin.misc.blockWatchList.add(block);
break; break;
case BROWN_MUSHROOM: case BROWN_MUSHROOM:
@ -103,6 +106,8 @@ public class mcBlockListener implements Listener
plugin.fastChangeQueue.push(block); plugin.fastChangeQueue.push(block);
break; break;
} }
if(shouldBeChanged)
plugin.changeQueue.push(block); plugin.changeQueue.push(block);
} }