mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-12 19:30:50 +01:00
Accept all damageevents for detecting left clicks, even cancelled ones
This commit is contained in:
parent
79162388f9
commit
8549508f97
@ -188,7 +188,7 @@ public class EventListen implements Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(ignoreCancelled = true)
|
@EventHandler
|
||||||
public void onEntityDamage(EntityDamageEvent event) {
|
public void onEntityDamage(EntityDamageEvent event) {
|
||||||
NPC npc = npcRegistry.getNPC(event.getEntity());
|
NPC npc = npcRegistry.getNPC(event.getEntity());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user