Add thread assertion to getVar(Varbits)

This commit is contained in:
Max Weber
2018-10-02 03:32:42 -06:00
parent 6db26f7d38
commit a35cb5fbd4

View File

@@ -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)
{ {