mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-28 05:35:45 +01:00
Don't use ignoreCancelled on entitytarget/damage
This commit is contained in:
parent
54a2527534
commit
1b3d81f019
@ -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