aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/QuestLoader.kt8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/QuestLoader.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/QuestLoader.kt
index 037faa503..41ac1a9c7 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/QuestLoader.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/QuestLoader.kt
@@ -158,12 +158,14 @@ class QuestLoader(private val dailyQuestHelper: DailyQuestHelper) {
fun loadConfig(storage: Storage.ProfileSpecific.CrimsonIsleStorage) {
if (dailyQuestHelper.greatSpook) return
for (text in storage.quests.toList()) {
- val split = text.split(":")
- val name = split[0]
- if (name.contains("The Great Spook")) {
+ if (text.contains("The Great Spook")) {
dailyQuestHelper.greatSpook = true
return
}
+ }
+ for (text in storage.quests.toList()) {
+ val split = text.split(":")
+ val name = split[0]
val state = QuestState.valueOf(split[1])
val needAmount = split[2].toInt()
val quest = addQuest(name, state, needAmount)