diff --git a/varo/src/main/java/de/cliffbreak/varo/managers/NPCManager.java b/varo/src/main/java/de/cliffbreak/varo/managers/NPCManager.java index a79b39e..cecc3b9 100644 --- a/varo/src/main/java/de/cliffbreak/varo/managers/NPCManager.java +++ b/varo/src/main/java/de/cliffbreak/varo/managers/NPCManager.java @@ -230,7 +230,9 @@ public class NPCManager { connection.sendPacket(new PacketPlayOutEntityDestroy(npc.getId())); } this.npcs.remove(npc); - this.isDying.remove(npc.getId()); + if (this.isDying.contains(npc.getId())) { + this.isDying.remove(npc.getId()); + } } } }