aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-15 23:43:49 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-15 23:43:49 +0100
commitbf86214560c96e93a6c9b2628be99cb670cb7360 (patch)
tree393956003ffd6509ad65f7000c05142f6e9425e3
parentc19e8d212f47924a982479a28d63924c823a0e7a (diff)
downloadSkyHanni-bf86214560c96e93a6c9b2628be99cb670cb7360.tar.gz
SkyHanni-bf86214560c96e93a6c9b2628be99cb670cb7360.tar.bz2
SkyHanni-bf86214560c96e93a6c9b2628be99cb670cb7360.zip
Deleting unknown quests with a repo update.
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/CrimsonIsleReputationHelper.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/CrimsonIsleReputationHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/CrimsonIsleReputationHelper.kt
index cf936c9fb..5e2af04ca 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/CrimsonIsleReputationHelper.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/CrimsonIsleReputationHelper.kt
@@ -5,6 +5,7 @@ import at.hannibal2.skyhanni.data.HyPixelData
import at.hannibal2.skyhanni.data.IslandType
import at.hannibal2.skyhanni.events.RepositoryReloadEvent
import at.hannibal2.skyhanni.features.nether.reputationhelper.dailyquest.DailyQuestHelper
+import at.hannibal2.skyhanni.features.nether.reputationhelper.dailyquest.quest.UnknownQuest
import at.hannibal2.skyhanni.features.nether.reputationhelper.miniboss.DailyMiniBossHelper
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.RenderUtils.renderStrings
@@ -32,6 +33,7 @@ class CrimsonIsleReputationHelper(skyHanniMod: SkyHanniMod) {
@SubscribeEvent
fun onRepoReload(event: RepositoryReloadEvent) {
+ questHelper.quests.removeIf { it is UnknownQuest}
repoData = event.getConstant("CrimsonIsleReputation")!!
if (!loaded) {
loaded = true