check if npc is saveable instead of modifiable when unregistering all npcs
This commit is contained in:
parent
9d7b031ffa
commit
d7071cef47
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue