Accept all damageevents for detecting left clicks, even cancelled ones

This commit is contained in:
fullwall 2016-04-22 00:31:49 +08:00
parent 79162388f9
commit 8549508f97

View File

@ -188,7 +188,7 @@ public class EventListen implements Listener {
}
}
@EventHandler(ignoreCancelled = true)
@EventHandler
public void onEntityDamage(EntityDamageEvent event) {
NPC npc = npcRegistry.getNPC(event.getEntity());