refactor: rename widgetSettings to clientVarps

This commit is contained in:
Joshua Filby
2018-03-21 17:29:28 -05:00
parent da0f86f165
commit abb1996c4e
5 changed files with 9 additions and 9 deletions

View File

@@ -233,8 +233,8 @@ public abstract class RSClientMixin implements RSClient
@Override
public int getSetting(Setting setting)
{
int[] settings = getSettings();
return settings[setting.getId()];
int[] varps = getVarps();
return varps[setting.getId()];
}
@Inject

View File

@@ -64,8 +64,8 @@ public abstract class VarbitMixin implements RSClient
varbitCache.put(varbitId, v);
}
int[] settings = getSettings();
int value = settings[v.getIndex()];
int[] varps = getVarps();
int value = varps[v.getIndex()];
int lsb = v.getLeastSignificantBit();
int msb = v.getMostSignificantBit();
int mask = (1 << ((msb - lsb) + 1)) - 1;