mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-03 15:08:18 +01:00
commit
2c462106bc
@ -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 New Issue
Block a user