This commit is contained in:
BuildTools
2019-07-29 22:41:25 -04:00
parent c40689e870
commit 29455ff09b
3 changed files with 53 additions and 30 deletions

View File

@@ -141,7 +141,7 @@ public class GauntletUtils {
public static boolean inRaid(Client client) {
try {
return client.getVarbitValue(client.getVarps(), VARP_RAID_ROOM) == 1;
} catch (IndexOutOfBoundsException ignore) {
} catch (IndexOutOfBoundsException | NullPointerException ignored) {
return false;
}
}
@@ -155,7 +155,7 @@ public class GauntletUtils {
public static boolean inBoss(Client client) {
try {
return client.getVarbitValue(client.getVarps(), VARP_BOSS_ROOM) == 1;
} catch (IndexOutOfBoundsException ignore) {
} catch (IndexOutOfBoundsException | NullPointerException ignored) {
return false;
}
}