mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-20 15:11:25 +01:00
commit
2c462106bc
@ -992,7 +992,7 @@ protect:
|
|||||||
# Which blocks should people be prevented from breaking?
|
# Which blocks should people be prevented from breaking?
|
||||||
break:
|
break:
|
||||||
|
|
||||||
# Which blocks should not be pushed by pistons?
|
# Which blocks should not be moved by pistons?
|
||||||
piston:
|
piston:
|
||||||
|
|
||||||
# Which blocks should not be dispensed by dispensers
|
# Which blocks should not be dispensed by dispensers
|
||||||
|
@ -277,9 +277,11 @@ public class EssentialsAntiBuildListener implements Listener {
|
|||||||
if (!event.isSticky()) {
|
if (!event.isSticky()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
final Block block = event.getBlock();
|
for (Block block : event.getBlocks()) {
|
||||||
if (prot.checkProtectionItems(AntiBuildConfig.blacklist_piston, block.getType())) {
|
if (prot.checkProtectionItems(AntiBuildConfig.blacklist_piston, block.getType())) {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user