Add thread assertion to getVar(Varbits)
This commit is contained in:
@@ -72,6 +72,8 @@ public abstract class VarbitMixin implements RSClient
|
||||
@Override
|
||||
public int getVarbitValue(int[] varps, int varbitId)
|
||||
{
|
||||
assert client.isClientThread();
|
||||
|
||||
RSVarbit v = varbitCache.getIfPresent(varbitId);
|
||||
if (v == null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user