Check for sticky pistons

This commit is contained in:
Travis Ralston 2012-05-19 08:00:34 -06:00
parent 9726ac6f12
commit 44e8efda36

View File

@ -80,7 +80,7 @@ public class BlockListener implements Listener {
public void onBlockPistonRetract(BlockPistonRetractEvent event) { public void onBlockPistonRetract(BlockPistonRetractEvent event) {
Block block = event.getRetractLocation().getBlock(); Block block = event.getRetractLocation().getBlock();
if (mcMMO.placeStore.isTrue(block)) { if (mcMMO.placeStore.isTrue(block) && event.isSticky()) {
mcMMO.placeStore.setFalse(block); mcMMO.placeStore.setFalse(block);
mcMMO.placeStore.setTrue(event.getBlock().getRelative(event.getDirection())); mcMMO.placeStore.setTrue(event.getBlock().getRelative(event.getDirection()));
} }