From f00efbd001ab2c00e6ff9054235efc27bd36a526 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 17 Sep 2023 08:50:12 +0200 Subject: migrate powder tracker and misc mining config into mining --- .../skyhanni/features/misc/powdertracker/PowderTracker.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc') diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/powdertracker/PowderTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/powdertracker/PowderTracker.kt index ce3d4a1c1..e16470b9b 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/powdertracker/PowderTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/powdertracker/PowderTracker.kt @@ -1,6 +1,7 @@ package at.hannibal2.skyhanni.features.misc.powdertracker import at.hannibal2.skyhanni.SkyHanniMod +import at.hannibal2.skyhanni.config.ConfigUpdaterMigrator import at.hannibal2.skyhanni.config.Storage import at.hannibal2.skyhanni.data.IslandType import at.hannibal2.skyhanni.data.ProfileStorageData @@ -21,7 +22,7 @@ import kotlin.concurrent.fixedRateTimer class PowderTracker { - private val config get() = SkyHanniMod.feature.misc.powderTrackerConfig + private val config get() = SkyHanniMod.feature.mining.powderTracker private var display = emptyList>() private val picked = "§6You have successfully picked the lock on this chest!".toPattern() private val uncovered = "§aYou uncovered a treasure chest!".toPattern() @@ -153,6 +154,11 @@ class PowderTracker { saveAndUpdate() } + @SubscribeEvent + fun onConfigFix(event: ConfigUpdaterMigrator.ConfigFixEvent) { + event.move(2, "misc.powderTrackerConfig", "mining.powderTracker") + } + private fun saveAndUpdate() { calculateGemstone() calculateMithril() -- cgit