diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-17 08:50:12 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-17 08:50:12 +0200 |
commit | f00efbd001ab2c00e6ff9054235efc27bd36a526 (patch) | |
tree | 935804b7a00a1fceedc6f765d2b5142b61fa57e1 /src/main/java/at/hannibal2/skyhanni/features/misc | |
parent | 95a5958b1297090f367573fdbe3883031b2445bf (diff) | |
download | skyhanni-f00efbd001ab2c00e6ff9054235efc27bd36a526.tar.gz skyhanni-f00efbd001ab2c00e6ff9054235efc27bd36a526.tar.bz2 skyhanni-f00efbd001ab2c00e6ff9054235efc27bd36a526.zip |
migrate powder tracker and misc mining config into mining
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/powdertracker/PowderTracker.kt | 8 |
1 files changed, 7 insertions, 1 deletions
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<List<Any>>() 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() |