aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-17 21:42:36 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-17 21:42:36 +0200
commit5560763ae2481c84c63513d37b228855dfa7ee43 (patch)
tree399243d3d760c442917ed239ca4c78a90b3b432b /src/main/java/at/hannibal2
parentd90b1dc825759920e6e6fa2ca95cf667dfa26082 (diff)
downloadskyhanni-5560763ae2481c84c63513d37b228855dfa7ee43.tar.gz
skyhanni-5560763ae2481c84c63513d37b228855dfa7ee43.tar.bz2
skyhanni-5560763ae2481c84c63513d37b228855dfa7ee43.zip
Fixed blaze slayer damage indicator working again, no longer causing fps drops and correctly migrating the colored mobs setting.
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/HellionShieldHelper.kt10
1 files changed, 5 insertions, 5 deletions
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