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
|
* Entity events
|
||||||
*/
|
*/
|
||||||
@EventHandler(ignoreCancelled = true)
|
@EventHandler
|
||||||
public void onEntityDamage(EntityDamageEvent event) {
|
public void onEntityDamage(EntityDamageEvent event) {
|
||||||
if (!npcRegistry.isNPC(event.getEntity()))
|
if (!npcRegistry.isNPC(event.getEntity()))
|
||||||
return;
|
return;
|
||||||
@ -113,7 +113,7 @@ public class EventListen implements Listener {
|
|||||||
npc.despawn();
|
npc.despawn();
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(ignoreCancelled = true)
|
@EventHandler
|
||||||
public void onEntityTarget(EntityTargetEvent event) {
|
public void onEntityTarget(EntityTargetEvent event) {
|
||||||
if (!npcRegistry.isNPC(event.getEntity()) || !(event.getTarget() instanceof Player))
|
if (!npcRegistry.isNPC(event.getEntity()) || !(event.getTarget() instanceof Player))
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user