mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 11:49:12 +00:00
commit
2c462106bc
2 changed files with 6 additions and 4 deletions
|
@ -992,7 +992,7 @@ protect:
|
|||
# Which blocks should people be prevented from breaking?
|
||||
break:
|
||||
|
||||
# Which blocks should not be pushed by pistons?
|
||||
# Which blocks should not be moved by pistons?
|
||||
piston:
|
||||
|
||||
# Which blocks should not be dispensed by dispensers
|
||||
|
|
|
@ -277,9 +277,11 @@ public class EssentialsAntiBuildListener implements Listener {
|
|||
if (!event.isSticky()) {
|
||||
return;
|
||||
}
|
||||
final Block block = event.getBlock();
|
||||
for (Block block : event.getBlocks()) {
|
||||
if (prot.checkProtectionItems(AntiBuildConfig.blacklist_piston, block.getType())) {
|
||||
event.setCancelled(true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue