From d5d57c4cd6b48417ddb9517faf66f88d65ffbb14 Mon Sep 17 00:00:00 2001 From: Lorenz Date: Sun, 4 Sep 2022 19:06:09 +0200 Subject: minor fixes --- .../skyhanni/features/damageindicator/DamageIndicatorManager.kt | 2 +- .../hannibal2/skyhanni/features/nether/ashfang/AshfangBlazingSouls.kt | 2 +- .../hannibal2/skyhanni/features/nether/ashfang/AshfangGravityOrbs.kt | 2 +- .../skyhanni/features/nether/ashfang/AshfangHighlightBlazes.kt | 3 +-- .../skyhanni/features/nether/ashfang/AshfangNextResetCooldown.kt | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/at/hannibal2/skyhanni/features/damageindicator/DamageIndicatorManager.kt b/src/main/java/at/hannibal2/skyhanni/features/damageindicator/DamageIndicatorManager.kt index 0004d9e97..e1a12c7af 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/damageindicator/DamageIndicatorManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/damageindicator/DamageIndicatorManager.kt @@ -44,7 +44,7 @@ class DamageIndicatorManager { } @SubscribeEvent - fun onWorldLoad(event: WorldEvent.Load) { + fun onWorldChange(event: WorldEvent.Load) { mobFinder = MobFinder() data.clear() } diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangBlazingSouls.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangBlazingSouls.kt index 2ae0908a2..1ca713afe 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangBlazingSouls.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangBlazingSouls.kt @@ -53,7 +53,7 @@ class AshfangBlazingSouls { } @SubscribeEvent - fun renderOverlay(event: WorldEvent.Load) { + fun onWorldChange(event: WorldEvent.Load) { souls.clear() } diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangGravityOrbs.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangGravityOrbs.kt index 6a6f991f1..635d5fe88 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangGravityOrbs.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangGravityOrbs.kt @@ -54,7 +54,7 @@ class AshfangGravityOrbs { } @SubscribeEvent - fun renderOverlay(event: WorldEvent.Load) { + fun onWorldChange(event: WorldEvent.Load) { orbs.clear() } diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangHighlightBlazes.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangHighlightBlazes.kt index 274f0b3c9..eaac1a5e1 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangHighlightBlazes.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangHighlightBlazes.kt @@ -4,7 +4,6 @@ import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.events.RenderMobColoredEvent import at.hannibal2.skyhanni.events.ResetEntityHurtTimeEvent import at.hannibal2.skyhanni.events.withAlpha -import at.hannibal2.skyhanni.test.LorenzTest import at.hannibal2.skyhanni.utils.EntityUtils.getAllNameTagsWith import at.hannibal2.skyhanni.utils.LorenzColor import at.hannibal2.skyhanni.utils.LorenzUtils @@ -62,7 +61,7 @@ class AshfangHighlightBlazes { fun onRenderMobColored(event: RenderMobColoredEvent) { if (!isEnabled()) return val entity = event.entity - event.color = blazes[entity]?.toColor()?.withAlpha(LorenzTest.a.toInt()) ?: 0 + event.color = blazes[entity]?.toColor()?.withAlpha(40) ?: 0 } @SubscribeEvent diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangNextResetCooldown.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangNextResetCooldown.kt index 0f8d617d1..0e10334b8 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangNextResetCooldown.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangNextResetCooldown.kt @@ -43,7 +43,7 @@ class AshfangNextResetCooldown { } @SubscribeEvent - fun renderOverlay(event: WorldEvent.Load) { + fun onWorldChange(event: WorldEvent.Load) { spawnTime = -1 } -- cgit