From 63cfe618269445a39f8850f21441c2577ede4862 Mon Sep 17 00:00:00 2001 From: DroppingAnvil Date: Sun, 27 Oct 2019 15:32:52 -0500 Subject: [PATCH] Fixed issue with 1.7 entity damage event --- .../massivecraft/factions/listeners/FactionsEntityListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/massivecraft/factions/listeners/FactionsEntityListener.java b/src/main/java/com/massivecraft/factions/listeners/FactionsEntityListener.java index 36857df6..ed016459 100644 --- a/src/main/java/com/massivecraft/factions/listeners/FactionsEntityListener.java +++ b/src/main/java/com/massivecraft/factions/listeners/FactionsEntityListener.java @@ -139,7 +139,7 @@ public class FactionsEntityListener implements Listener { } } else { // Protect armor stands/item frames from being damaged in protected territories - if (damagee.getType() == EntityType.ITEM_FRAME || damagee.getType() == EntityType.ARMOR_STAND) { + if (damagee.getType() == EntityType.ITEM_FRAME || damagee.getType().name().equals("armor_stand")) { // Manage projectiles launched by players if (damager instanceof Projectile && ((Projectile) damager).getShooter() instanceof Entity) { damager = (Entity) ((Projectile) damager).getShooter();