fix delete bug

This commit is contained in:
Pyrbu 2023-09-13 20:52:49 +02:00
parent b811526198
commit 73efb10181

@ -147,7 +147,7 @@ public class NpcRegistryImpl implements NpcRegistry {
@Override
public void delete(String id) {
NpcEntryImpl entry = npcIdLookupMap.remove(id.toLowerCase());
NpcEntryImpl entry = npcIdLookupMap.get(id.toLowerCase());
if (entry == null) return;
unregister(entry);
storage.deleteNpc(entry);