diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-01 11:02:48 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-01 11:02:48 +0100 |
commit | 51bb17c1a924753aa0eb005d47edfc85ff18e4cf (patch) | |
tree | 678e708c02ae8f9f29c943cb789cc69e9cbf4b44 /src | |
parent | e88aaedb6916fdc7444caa90f939cbd8a306c20c (diff) | |
download | skyhanni-51bb17c1a924753aa0eb005d47edfc85ff18e4cf.tar.gz skyhanni-51bb17c1a924753aa0eb005d47edfc85ff18e4cf.tar.bz2 skyhanni-51bb17c1a924753aa0eb005d47edfc85ff18e4cf.zip |
fixed loading error
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/QuestLoader.kt | 8 |
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) |