fix removing of unmodifiable npcs on reload

This commit is contained in:
D3v1s0m 2023-10-11 02:18:49 +05:30
parent 27a6f32f4f
commit e611888339
No known key found for this signature in database
GPG Key ID: FA1F770C7B1D40C1

@ -57,7 +57,7 @@ public class NpcRegistryImpl implements NpcRegistry {
} }
private void unregisterAll() { private void unregisterAll() {
for (NpcEntryImpl entry : npcList) entry.getNpc().delete(); for (NpcEntryImpl entry : getAllModifiable()) entry.getNpc().delete();
npcList.clear(); npcList.clear();
npcIdLookupMap.clear(); npcIdLookupMap.clear();
npcUuidLookupMap.clear(); npcUuidLookupMap.clear();