mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-15 23:26:27 +01:00
Fix piston bug with AntiBuild.
Prior to this commit, BlockPistonRetractEvent#getRetractLocation() was being used, which is now deprecated after 4 years of when this code was written.
This commit is contained in:
parent
690dbea924
commit
c75594f314
@ -157,7 +157,7 @@ public class EssentialsAntiBuildListener implements Listener {
|
||||
if (!event.isSticky()) {
|
||||
return;
|
||||
}
|
||||
final Block block = event.getRetractLocation().getBlock();
|
||||
final Block block = event.getBlock();
|
||||
if (prot.checkProtectionItems(AntiBuildConfig.blacklist_piston, block.getTypeId())) {
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user