check if npc is saveable instead of modifiable when unregistering all npcs
This commit is contained in:
parent
9d7b031ffa
commit
d7071cef47
@ -63,7 +63,9 @@ public class NpcRegistryImpl implements NpcRegistry {
|
||||
}
|
||||
|
||||
private void unregisterAll() {
|
||||
for (NpcEntryImpl entry : getAllModifiable()) entry.getNpc().delete();
|
||||
for (NpcEntryImpl entry : getAll()) {
|
||||
if (entry.isSave()) entry.getNpc().delete();
|
||||
}
|
||||
npcList.clear();
|
||||
npcIdLookupMap.clear();
|
||||
npcUuidLookupMap.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user