runelite-client: only update the actions if the item id matches

This commit is contained in:
Dennis
2018-04-05 11:02:40 -04:00
committed by Adam
parent b33b311864
commit 232a363ba9
@@ -254,7 +254,8 @@ public class BankTagsPlugin extends Plugin
} }
Widget bankItemWidget = bankItemWidgets[inventoryIndex]; Widget bankItemWidget = bankItemWidgets[inventoryIndex];
String[] actions = bankItemWidget.getActions(); String[] actions = bankItemWidget.getActions();
if (actions == null || EDIT_TAGS_MENU_INDEX - 1 >= actions.length) if (actions == null || EDIT_TAGS_MENU_INDEX - 1 >= actions.length
|| itemId != bankItemWidget.getItemId())
{ {
return; return;
} }