npchighlight: don't unhighlight name tagged npcs if unindex-tagging them

This commit is contained in:
Max Weber
2020-07-10 17:21:33 -06:00
committed by Adam
parent f0b7be68ba
commit f0a8b67820

View File

@@ -344,8 +344,11 @@ public class NpcIndicatorsPlugin extends Plugin
if (removed) if (removed)
{ {
highlightedNpcs.remove(npc); if (!highlightMatchesNPCName(npc.getName()))
memorizedNpcs.remove(npc.getIndex()); {
highlightedNpcs.remove(npc);
memorizedNpcs.remove(npc.getIndex());
}
} }
else else
{ {