diff --git a/src/main/java/com/gmail/nossr50/listeners/EntityListener.java b/src/main/java/com/gmail/nossr50/listeners/EntityListener.java index 04199bcb7..737790cf8 100644 --- a/src/main/java/com/gmail/nossr50/listeners/EntityListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/EntityListener.java @@ -151,6 +151,10 @@ public class EntityListener implements Listener { Entity attacker = event.getDamager(); + if (Misc.isNPCEntity(attacker)) { + return; + } + if (attacker instanceof Projectile) { attacker = ((Projectile) attacker).getShooter(); }