Skip to content

Commit

Permalink
allow non-target tag gear
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam- committed Oct 19, 2024
1 parent 391cf53 commit 738f378
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -765,12 +765,8 @@ private void opTagTab(ScriptEvent event)
@Subscribe
private void onMenuEntryAdded(MenuEntryAdded event)
{
if (activeBankTag != null && (activeBankTag.options() & BankTag.OPTION_ALLOW_MODIFICATIONS) == 0)
{
return;
}

if (activeBankTag != null
&& (activeBankTag.options() & BankTag.OPTION_ALLOW_MODIFICATIONS) != 0
&& event.getActionParam1() == ComponentID.BANK_ITEM_CONTAINER
&& event.getOption().equals("Examine"))
{
Expand Down Expand Up @@ -843,7 +839,7 @@ else if (event.getActionParam1() == ComponentID.BANK_DEPOSIT_INVENTORY
{
createMenuEntry(event, TAG_INVENTORY, event.getTarget());

if (activeTag != null)
if (activeTag != null && activeBankTag != null && (activeBankTag.options() & BankTag.OPTION_ALLOW_MODIFICATIONS) != 0)
{
createMenuEntry(event, TAG_INVENTORY, ColorUtil.wrapWithColorTag(activeTag, HILIGHT_COLOR));
}
Expand All @@ -853,7 +849,7 @@ else if (event.getActionParam1() == ComponentID.BANK_DEPOSIT_EQUIPMENT
{
createMenuEntry(event, TAG_GEAR, event.getTarget());

if (activeTag != null)
if (activeTag != null && activeBankTag != null && (activeBankTag.options() & BankTag.OPTION_ALLOW_MODIFICATIONS) != 0)
{
createMenuEntry(event, TAG_GEAR, ColorUtil.wrapWithColorTag(activeTag, HILIGHT_COLOR));
}
Expand Down

0 comments on commit 738f378

Please sign in to comment.