From 5560763ae2481c84c63513d37b228855dfa7ee43 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 17 Oct 2023 21:42:36 +0200 Subject: Fixed blaze slayer damage indicator working again, no longer causing fps drops and correctly migrating the colored mobs setting. --- .../skyhanni/features/slayer/blaze/HellionShieldHelper.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/HellionShieldHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/HellionShieldHelper.kt index e0ba32edc..105f7db3e 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/HellionShieldHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/HellionShieldHelper.kt @@ -32,6 +32,11 @@ class HellionShieldHelper { hellionShieldMobs.getOrDefault(event.entity, null) ?: return event.shouldReset = true } + + @SubscribeEvent + fun onConfigFix(event: ConfigUpdaterMigrator.ConfigFixEvent) { + event.move(3, "slayer.blazeColoredMobs", "slayer.blazes.hellion.coloredMobs") + } } fun EntityLiving.setHellionShield(shield: HellionShield?) { @@ -40,9 +45,4 @@ fun EntityLiving.setHellionShield(shield: HellionShield?) { } else { HellionShieldHelper.hellionShieldMobs.remove(this) } - - @SubscribeEvent - fun onConfigFix(event: ConfigUpdaterMigrator.ConfigFixEvent) { - event.move(3, "slayer.blazeColoredMobs", "slayer.blazes.hellion.coloredMobs") - } } \ No newline at end of file -- cgit