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