mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-26 04:35:50 +01:00
Don't use ignoreCancelled on entitytarget/damage
This commit is contained in:
parent
751784010f
commit
17720fbd5b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user