diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-17 08:33:32 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-17 08:33:32 +0200 |
commit | e27b4ea5a0b4546a7b984a3dc5b1522a7b1648bb (patch) | |
tree | a121fcea28a783543ab6c2d5b0da4c1b71e62f35 /src/main/java/at/hannibal2/skyhanni/features/misc | |
parent | 870d973ae9cda04430319c070ed6d90ac11435c0 (diff) | |
download | skyhanni-e27b4ea5a0b4546a7b984a3dc5b1522a7b1648bb.tar.gz skyhanni-e27b4ea5a0b4546a7b984a3dc5b1522a7b1648bb.tar.bz2 skyhanni-e27b4ea5a0b4546a7b984a3dc5b1522a7b1648bb.zip |
migrate mobs nad summoning config into combat
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/MiscFeatures.kt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/MiscFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/MiscFeatures.kt index ab4d22df1..0d164b477 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/MiscFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/MiscFeatures.kt @@ -1,6 +1,7 @@ package at.hannibal2.skyhanni.features.misc import at.hannibal2.skyhanni.SkyHanniMod +import at.hannibal2.skyhanni.config.ConfigUpdaterMigrator import at.hannibal2.skyhanni.events.ReceiveParticleEvent import at.hannibal2.skyhanni.utils.LorenzUtils import net.minecraft.util.EnumParticleTypes @@ -16,7 +17,7 @@ class MiscFeatures { @SubscribeEvent fun onEnderTeleport(event: EnderTeleportEvent) { if (!LorenzUtils.inSkyBlock) return - if (!SkyHanniMod.feature.mobs.endermanTeleportationHider) return + if (!SkyHanniMod.feature.combat.mobs.endermanTeleportationHider) return event.isCanceled = true } @@ -44,4 +45,9 @@ class MiscFeatures { event.isCanceled = true } } + + @SubscribeEvent + fun onConfigFix(event: ConfigUpdaterMigrator.ConfigFixEvent) { + event.move(2, "mobs", "combat.mobs") + } }
\ No newline at end of file |