daily tasks plugin: fix broken if statement

This commit is contained in:
15987632
2019-05-03 15:37:39 -04:00
committed by Adam
parent b0906d40ec
commit 1c2a3eca1e

View File

@@ -66,7 +66,6 @@ public class DailyTasksPlugin extends Plugin
private static final String BONEMEAL_MESSAGE = "You have bonemeal and slime waiting to be collected from Robin."; private static final String BONEMEAL_MESSAGE = "You have bonemeal and slime waiting to be collected from Robin.";
private static final int BONEMEAL_PER_DIARY = 13; private static final int BONEMEAL_PER_DIARY = 13;
private static final String DYNAMITE_MESSAGE = "You have dynamite waiting to be collected from Thirus."; private static final String DYNAMITE_MESSAGE = "You have dynamite waiting to be collected from Thirus.";
private static final String RELOG_MESSAGE = " (May require a relog)";
@Inject @Inject
private Client client; private Client client;
@@ -197,8 +196,8 @@ public class DailyTasksPlugin extends Plugin
private void checkRunes(boolean dailyReset) private void checkRunes(boolean dailyReset)
{ {
if (client.getVar(Varbits.DIARY_WILDERNESS_EASY) == 1 if (client.getVar(Varbits.DIARY_WILDERNESS_EASY) == 1
&& (client.getVar(Varbits.DAILY_RUNES_COLLECTED) == 0) && (client.getVar(Varbits.DAILY_RUNES_COLLECTED) == 0
|| dailyReset) || dailyReset))
{ {
sendChatMessage(RUNES_MESSAGE); sendChatMessage(RUNES_MESSAGE);
} }