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:
Ali Moghnieh 2016-06-18 04:08:15 +01:00
parent 690dbea924
commit c75594f314

View File

@ -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);
}