Merge remote-tracking branch 'runelite/master' into 0908-merge

This commit is contained in:
Owain van Brakel
2019-08-10 03:37:36 +02:00
3 changed files with 5 additions and 3 deletions

View File

@@ -709,7 +709,7 @@ public interface Client extends GameShell
* @param varbit the variable
* @param value the new value
*/
void setSetting(Varbits varbit, int value);
void setVarbit(Varbits varbit, int value);
/**
* Gets the value of a given variable.

View File

@@ -216,6 +216,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());
}
}
@@ -328,7 +330,7 @@ public class TabInterface
switch (event.getOp())
{
case Tab.OPEN_TAG:
client.setVarbitValue(client.getVarps(), Varbits.CURRENT_BANK_TAB.getId(), 0);
client.setVarbit(Varbits.CURRENT_BANK_TAB, 0);
Widget clicked = event.getSource();
TagTab tab = tabManager.find(Text.removeTags(clicked.getName()));

View File

@@ -39,7 +39,7 @@ public abstract class VarbitMixin implements RSClient
@Inject
@Override
public void setSetting(Varbits varbit, int value)
public void setVarbit(Varbits varbit, int value)
{
int varbitId = varbit.getId();
setVarbitValue(getVarps(), varbitId, value);