fix delete bug
This commit is contained in:
parent
b811526198
commit
73efb10181
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue