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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user