From c75594f314be130bd9b37de39548bff2493701d3 Mon Sep 17 00:00:00 2001 From: Ali Moghnieh Date: Sat, 18 Jun 2016 04:08:15 +0100 Subject: [PATCH] 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. --- .../essentials/antibuild/EssentialsAntiBuildListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EssentialsAntiBuild/src/com/earth2me/essentials/antibuild/EssentialsAntiBuildListener.java b/EssentialsAntiBuild/src/com/earth2me/essentials/antibuild/EssentialsAntiBuildListener.java index f879c80b4..f60ec5854 100644 --- a/EssentialsAntiBuild/src/com/earth2me/essentials/antibuild/EssentialsAntiBuildListener.java +++ b/EssentialsAntiBuild/src/com/earth2me/essentials/antibuild/EssentialsAntiBuildListener.java @@ -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); }