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

@@ -343,10 +343,13 @@ public class NpcIndicatorsPlugin extends Plugin
final boolean removed = npcTags.remove(id); final boolean removed = npcTags.remove(id);
if (removed) if (removed)
{
if (!highlightMatchesNPCName(npc.getName()))
{ {
highlightedNpcs.remove(npc); highlightedNpcs.remove(npc);
memorizedNpcs.remove(npc.getIndex()); memorizedNpcs.remove(npc.getIndex());
} }
}
else else
{ {
if (!client.isInInstancedRegion()) if (!client.isInInstancedRegion())