From a0aac8797130848b2e4491171624c3f06394a013 Mon Sep 17 00:00:00 2001 From: trimbe Date: Tue, 6 Aug 2019 21:48:18 -0400 Subject: [PATCH] bank tags: properly open saved tab Jagex appears to be syncing the current tab varbit more aggressively now, so if the active tab was not the first tab before switching to a tag tab, bank layout would misbehave when the bank was reopened. --- .../net/runelite/client/plugins/banktags/tabs/TabInterface.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/banktags/tabs/TabInterface.java b/runelite-client/src/main/java/net/runelite/client/plugins/banktags/tabs/TabInterface.java index 21aeba6645..19baa9041c 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/banktags/tabs/TabInterface.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/banktags/tabs/TabInterface.java @@ -215,6 +215,8 @@ public class TabInterface if (config.rememberTab() && !Strings.isNullOrEmpty(config.tab())) { + // the server will resync the last opened vanilla tab when the bank is opened + client.setVarbit(Varbits.CURRENT_BANK_TAB, 0); openTag(config.tab()); } }