mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Check for sticky pistons
This commit is contained in:
parent
9726ac6f12
commit
44e8efda36
@ -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()));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user