diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-02-16 11:14:58 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-02-16 11:14:58 +0100 |
commit | 26fe548fa9a5cfe29b130a0a5585278df3429ee9 (patch) | |
tree | a367c3d5799d1e54932a072fb43b63aa10158d72 /src/main/java/at/hannibal2/skyhanni/features/nether | |
parent | 40745b8f209d16a9adbc0a21931d5f466c92c646 (diff) | |
download | skyhanni-26fe548fa9a5cfe29b130a0a5585278df3429ee9.tar.gz skyhanni-26fe548fa9a5cfe29b130a0a5585278df3429ee9.tar.bz2 skyhanni-26fe548fa9a5cfe29b130a0a5585278df3429ee9.zip |
Moving Sulphur Skitter Box from Crimson Isle to Fishing -> Trophy Fishing.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/nether')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/nether/SulphurSkitterBox.kt | 9 |
1 files changed, 8 insertions, 1 deletions
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<NEUInternalName>() private var spongeBlocks = listOf<BlockPos>() 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") + } } |