Fix typo causing npcs to be damageable

This commit is contained in:
fullwall 2023-10-24 23:10:03 +08:00
parent 1fa3b22c57
commit dd247a9ee0

View File

@ -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);