project: Change deprecated calls
This commit is contained in:
@@ -112,7 +112,7 @@ public class PvPUtil
|
||||
{
|
||||
wildernessLevel += 15;
|
||||
}
|
||||
if (client.getVar(Varbits.IN_WILDERNESS) == 1)
|
||||
if (client.getVarbitValue(Varbits.IN_WILDERNESS) == 1)
|
||||
{
|
||||
wildernessLevel += getWildernessLevelFrom(client.getLocalPlayer().getWorldLocation());
|
||||
}
|
||||
|
||||
@@ -492,7 +492,7 @@ public abstract class RSClientMixin implements RSClient
|
||||
@Override
|
||||
public AccountType getAccountType()
|
||||
{
|
||||
int varbit = getVar(Varbits.ACCOUNT_TYPE);
|
||||
int varbit = getVarbitValue(Varbits.ACCOUNT_TYPE);
|
||||
|
||||
switch (varbit)
|
||||
{
|
||||
@@ -771,7 +771,7 @@ public abstract class RSClientMixin implements RSClient
|
||||
@Override
|
||||
public boolean isPrayerActive(Prayer prayer)
|
||||
{
|
||||
return getVar(prayer.getVarbit()) == 1;
|
||||
return getVarbitValue(prayer.getVarbit()) == 1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user