diff --git a/src/main/java/net/citizensnpcs/EventListen.java b/src/main/java/net/citizensnpcs/EventListen.java index 3b23a0782..83319b62f 100644 --- a/src/main/java/net/citizensnpcs/EventListen.java +++ b/src/main/java/net/citizensnpcs/EventListen.java @@ -90,9 +90,8 @@ public class EventListen implements Listener { EntityDamageByEntityEvent e = (EntityDamageByEntityEvent) event; NPC npc = npcManager.getNPC(event.getEntity()); - NPCDamageEvent damageEvent = new NPCDamageEvent(npc, e.getDamager()); + NPCDamageEvent damageEvent = new NPCDamageEvent(npc, e); Bukkit.getPluginManager().callEvent(event); - event.setCancelled(damageEvent.isCancelled()); if (!damageEvent.isCancelled() || !(e.getDamager() instanceof Player)) return;