Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Essentials/src/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,11 @@ public void onBlockPistonRetract(final BlockPistonRetractEvent event) {
if (!event.isSticky()) {
return;
}
final Block block = event.getBlock();
if (prot.checkProtectionItems(AntiBuildConfig.blacklist_piston, block.getType())) {
event.setCancelled(true);
for (Block block : event.getBlocks()) {
if (prot.checkProtectionItems(AntiBuildConfig.blacklist_piston, block.getType())) {
event.setCancelled(true);
return;
}
}
}

Expand Down