From 479e6a484747921766ee8e472a95d8780d8b687f Mon Sep 17 00:00:00 2001 From: boy0001 Date: Fri, 31 Jul 2015 01:01:26 +1000 Subject: [PATCH] Fixed issue with older versions --- .../java/com/plotsquared/bukkit/listeners/PlayerEvents.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java b/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java index 843ab85d6..ebddd4317 100644 --- a/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java +++ b/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java @@ -49,7 +49,6 @@ import org.bukkit.block.BlockFace; import org.bukkit.block.BlockState; import org.bukkit.command.PluginCommand; import org.bukkit.entity.Animals; -import org.bukkit.entity.ArmorStand; import org.bukkit.entity.Arrow; import org.bukkit.entity.Creature; import org.bukkit.entity.EnderDragon; @@ -1898,7 +1897,7 @@ public class PlayerEvents extends com.plotsquared.listener.PlotListener implemen return; } } - else if (victim instanceof ArmorStand) { + else if (victim.getEntityId() == 30) { if (plot != null && ((FlagManager.isPlotFlagTrue(plot, "misc-break") || plot.isAdded(pp.getUUID())))) { return; }