aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
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
commit1e62cf96e2a086d577250dbea5eb781fc1da285d (patch)
tree393956003ffd6509ad65f7000c05142f6e9425e3 /src/main/java/at/hannibal2
parent762cfe41c1317935b9390a759c14aaf197e688f4 (diff)
downloadskyhanni-1e62cf96e2a086d577250dbea5eb781fc1da285d.tar.gz
skyhanni-1e62cf96e2a086d577250dbea5eb781fc1da285d.tar.bz2
skyhanni-1e62cf96e2a086d577250dbea5eb781fc1da285d.zip
Deleting unknown quests with a repo update.
Diffstat (limited to 'src/main/java/at/hannibal2')
-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