Skip to content

Commit

Permalink
Accept all damageevents for detecting left clicks, even cancelled ones
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Apr 21, 2016
1 parent 9eb460e commit 7cc72bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/citizensnpcs/EventListen.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public void onEntityCombust(EntityCombustEvent event) {
}
}

@EventHandler(ignoreCancelled = true)
@EventHandler
public void onEntityDamage(EntityDamageEvent event) {
NPC npc = npcRegistry.getNPC(event.getEntity());

Expand Down

0 comments on commit 7cc72bf

Please sign in to comment.