npc indicators: fix tag/untag option name selection logic

When pressed tag/untag will first check if the npc id is tagged via
npcTags, so the menu option should be based off of that, and not whether
or not the npc is highlighted generally
This commit is contained in:
Adam
2020-07-01 11:32:46 -04:00
parent b0d8092d7d
commit ac30c8dc3f

View File

@@ -308,7 +308,7 @@ public class NpcIndicatorsPlugin extends Plugin
}
final MenuEntry tagEntry = menuEntries[menuEntries.length - 1] = new MenuEntry();
tagEntry.setOption(highlightedNpcs.contains(npc) ? UNTAG : TAG);
tagEntry.setOption(npcTags.contains(npc.getIndex()) ? UNTAG : TAG);
tagEntry.setTarget(event.getTarget());
tagEntry.setParam0(event.getActionParam0());
tagEntry.setParam1(event.getActionParam1());