aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-01 11:02:48 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-01 11:02:48 +0100
commit51bb17c1a924753aa0eb005d47edfc85ff18e4cf (patch)
tree678e708c02ae8f9f29c943cb789cc69e9cbf4b44 /src/main
parente88aaedb6916fdc7444caa90f939cbd8a306c20c (diff)
downloadskyhanni-51bb17c1a924753aa0eb005d47edfc85ff18e4cf.tar.gz
skyhanni-51bb17c1a924753aa0eb005d47edfc85ff18e4cf.tar.bz2
skyhanni-51bb17c1a924753aa0eb005d47edfc85ff18e4cf.zip
fixed loading error
Diffstat (limited to 'src/main')
-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)