mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-08-01 03:55:28 +02:00
Added fail safes against bonus drop meta not being cleaned up
This commit is contained in:
@@ -35,7 +35,7 @@ public class PistonTrackerTask extends BukkitRunnable {
|
||||
Block nextBlock = b.getRelative(direction);
|
||||
|
||||
if (nextBlock.hasMetadata(MetadataConstants.METADATA_KEY_PISTON_TRACKING)) {
|
||||
mcMMO.getPlaceStore().setTrue(nextBlock);
|
||||
BlockUtils.setUnnaturalBlock(nextBlock);
|
||||
nextBlock.removeMetadata(MetadataConstants.METADATA_KEY_PISTON_TRACKING, mcMMO.p);
|
||||
}
|
||||
else if (mcMMO.getPlaceStore().isTrue(nextBlock)) {
|
||||
|
@@ -30,6 +30,6 @@ public class StickyPistonTrackerTask extends BukkitRunnable {
|
||||
|
||||
// The sticky piston actually pulled the block so move the PlaceStore data
|
||||
mcMMO.getPlaceStore().setFalse(movedBlock.getRelative(direction));
|
||||
mcMMO.getPlaceStore().setTrue(movedBlock);
|
||||
BlockUtils.setUnnaturalBlock(movedBlock);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user