From 1b3d81f0192b27c38b0137255232cc6ee7f3de4e Mon Sep 17 00:00:00 2001 From: fullwall Date: Fri, 31 Aug 2012 22:19:04 +0800 Subject: [PATCH] Don't use ignoreCancelled on entitytarget/damage --- src/main/java/net/citizensnpcs/EventListen.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/citizensnpcs/EventListen.java b/src/main/java/net/citizensnpcs/EventListen.java index 1929f1f8c..988603b12 100644 --- a/src/main/java/net/citizensnpcs/EventListen.java +++ b/src/main/java/net/citizensnpcs/EventListen.java @@ -79,7 +79,7 @@ public class EventListen implements Listener { /* * Entity events */ - @EventHandler(ignoreCancelled = true) + @EventHandler public void onEntityDamage(EntityDamageEvent event) { if (!npcRegistry.isNPC(event.getEntity())) return; @@ -113,7 +113,7 @@ public class EventListen implements Listener { npc.despawn(); } - @EventHandler(ignoreCancelled = true) + @EventHandler public void onEntityTarget(EntityTargetEvent event) { if (!npcRegistry.isNPC(event.getEntity()) || !(event.getTarget() instanceof Player)) return;