From 51bb17c1a924753aa0eb005d47edfc85ff18e4cf Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Wed, 1 Nov 2023 11:02:48 +0100 Subject: fixed loading error --- .../features/nether/reputationhelper/dailyquest/QuestLoader.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni') 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) -- cgit