From 26fe548fa9a5cfe29b130a0a5585278df3429ee9 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Fri, 16 Feb 2024 11:14:58 +0100 Subject: Moving Sulphur Skitter Box from Crimson Isle to Fishing -> Trophy Fishing. --- .../at/hannibal2/skyhanni/features/nether/SulphurSkitterBox.kt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features') diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/SulphurSkitterBox.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/SulphurSkitterBox.kt index 6ffabfa0e..5db95b246 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/nether/SulphurSkitterBox.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/nether/SulphurSkitterBox.kt @@ -1,6 +1,7 @@ package at.hannibal2.skyhanni.features.nether import at.hannibal2.skyhanni.SkyHanniMod +import at.hannibal2.skyhanni.config.ConfigUpdaterMigrator import at.hannibal2.skyhanni.config.features.crimsonisle.SulphurSkitterBoxConfig import at.hannibal2.skyhanni.data.IslandType import at.hannibal2.skyhanni.data.jsonobjects.repo.ItemsJson @@ -27,7 +28,7 @@ import java.awt.Color class SulphurSkitterBox { - private val config get() = SkyHanniMod.feature.crimsonIsle.sulphurSkitterBoxConfig + private val config get() = SkyHanniMod.feature.fishing.trophyFishing.sulphurSkitterBox private var rods = listOf() private var spongeBlocks = listOf() private var closestBlock: BlockPos? = null @@ -113,4 +114,10 @@ class SulphurSkitterBox { fun isEnabled() = IslandType.CRIMSON_ISLE.isInIsland() && config.enabled && (!config.onlyWithRods || InventoryUtils.itemInHandId in rods) + + + @SubscribeEvent + fun onConfigFix(event: ConfigUpdaterMigrator.ConfigFixEvent) { + event.move(24, "crimsonIsle.sulphurSkitterBoxConfig", "fishing.trophyFishing.sulphurSkitterBox") + } } -- cgit