use more efficient delete method

This commit is contained in:
Pyrbu 2023-06-22 23:29:18 +02:00
parent 81204688e5
commit 96be7b34ef

@ -148,6 +148,6 @@ public class NpcRegistryImpl implements NpcRegistry {
} }
public void unload() { public void unload() {
npcList.forEach(npcEntry -> npcEntry.getNpc().getViewers().forEach(npcEntry.getNpc()::UNSAFE_hide)); npcList.forEach(npcEntry -> npcEntry.getNpc().delete());
} }
} }