mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 02:04:44 +02:00
Check for sticky pistons
This commit is contained in:
@ -80,7 +80,7 @@ public class BlockListener implements Listener {
|
||||
public void onBlockPistonRetract(BlockPistonRetractEvent event) {
|
||||
Block block = event.getRetractLocation().getBlock();
|
||||
|
||||
if (mcMMO.placeStore.isTrue(block)) {
|
||||
if (mcMMO.placeStore.isTrue(block) && event.isSticky()) {
|
||||
mcMMO.placeStore.setFalse(block);
|
||||
mcMMO.placeStore.setTrue(event.getBlock().getRelative(event.getDirection()));
|
||||
}
|
||||
|
Reference in New Issue
Block a user