aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/nether
diff options
context:
space:
mode:
authorWalker Selby <git@walkerselby.com>2023-10-11 11:24:39 +0100
committerGitHub <noreply@github.com>2023-10-11 12:24:39 +0200
commit4f9fe89aac7b97741f7079ab1ad5f7051e0fa7f7 (patch)
tree80d0ba5a1fa2893c0529f0382a99d6a044bc905c /src/main/java/at/hannibal2/skyhanni/features/nether
parent8527d7555ea16becbcfe949413eabfd41c8400c4 (diff)
downloadskyhanni-4f9fe89aac7b97741f7079ab1ad5f7051e0fa7f7.tar.gz
skyhanni-4f9fe89aac7b97741f7079ab1ad5f7051e0fa7f7.tar.bz2
skyhanni-4f9fe89aac7b97741f7079ab1ad5f7051e0fa7f7.zip
More Code Cleanup - When (#531)
code cleanup #531
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/nether')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt
index f4809c10b..babf7e1c7 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt
@@ -300,11 +300,9 @@ class DailyQuestHelper(val reputationHelper: CrimsonIsleReputationHelper) {
fun finishKuudra(kuudraTier: KuudraTier) {
val kuudraQuest = getQuest<KuudraQuest>() ?: return
- if (kuudraQuest.kuudraTier == kuudraTier) {
- //TODO make inline method for this two lines
- if (kuudraQuest.state == QuestState.ACCEPTED) {
- kuudraQuest.state = QuestState.READY_TO_COLLECT
- }
+ //TODO make inline method for this two lines
+ if (kuudraQuest.kuudraTier == kuudraTier && kuudraQuest.state == QuestState.ACCEPTED) {
+ kuudraQuest.state = QuestState.READY_TO_COLLECT
}
}