use more efficient delete method
This commit is contained in:
parent
81204688e5
commit
96be7b34ef
1 changed files with 1 additions and 1 deletions
|
@ -148,6 +148,6 @@ public class NpcRegistryImpl implements NpcRegistry {
|
|||
}
|
||||
|
||||
public void unload() {
|
||||
npcList.forEach(npcEntry -> npcEntry.getNpc().getViewers().forEach(npcEntry.getNpc()::UNSAFE_hide));
|
||||
npcList.forEach(npcEntry -> npcEntry.getNpc().delete());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue