mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 08:39:49 +01:00
Fixing unwanted block data changes
This commit is contained in:
parent
f850c0ead6
commit
77b0dd725c
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user