mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 11:49:12 +00:00
fix blacklisted blocks being pulled by sticky piston
This commit is contained in:
parent
def5f2155d
commit
6875fa4c7e
1 changed files with 5 additions and 3 deletions
|
@ -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 a new issue