mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-22 10:36:10 +01:00
Fix typo causing npcs to be damageable
This commit is contained in:
parent
1fa3b22c57
commit
dd247a9ee0
@ -287,6 +287,7 @@ public class EventListen implements Listener {
|
||||
}
|
||||
return;
|
||||
}
|
||||
event.setCancelled(npc.isProtected());
|
||||
|
||||
if (event instanceof EntityDamageByEntityEvent) {
|
||||
NPCDamageByEntityEvent damageEvent = new NPCDamageByEntityEvent(npc, (EntityDamageByEntityEvent) event);
|
||||
|
Loading…
Reference in New Issue
Block a user