From 84b7b6820ce431da4be6ce634307f4a0abb07d1c Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Mon, 5 Jun 2023 23:58:35 +0200 Subject: Fixed bug that arachne highlights do not work when slayer miniboss highlighter is disabled --- .../skyhanni/features/damageindicator/MobFinder.kt | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/main/java/at/hannibal2/skyhanni/features/damageindicator/MobFinder.kt b/src/main/java/at/hannibal2/skyhanni/features/damageindicator/MobFinder.kt index 9a5176628..373d20c22 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/damageindicator/MobFinder.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/damageindicator/MobFinder.kt @@ -382,19 +382,21 @@ class MobFinder { return null } + private val arachneBossHighlighter get() = SkyHanniMod.feature.mobs.arachneBossHighlighter + private fun markArachneMinis(entity: EntityLivingBase) { - if (SkyHanniMod.feature.mobs.arachneBossHighlighter) { + if (arachneBossHighlighter) { RenderLivingEntityHelper.setEntityColor(entity, LorenzColor.GOLD.toColor().withAlpha(50)) - { SkyHanniMod.feature.slayer.slayerMinibossHighlight } - RenderLivingEntityHelper.setNoHurtTime(entity) { SkyHanniMod.feature.slayer.slayerMinibossHighlight } + { arachneBossHighlighter } + RenderLivingEntityHelper.setNoHurtTime(entity) { arachneBossHighlighter } } } private fun markArachne(entity: EntityLivingBase) { - if (SkyHanniMod.feature.mobs.arachneBossHighlighter) { + if (arachneBossHighlighter) { RenderLivingEntityHelper.setEntityColor(entity, LorenzColor.RED.toColor().withAlpha(50)) - { SkyHanniMod.feature.slayer.slayerMinibossHighlight } - RenderLivingEntityHelper.setNoHurtTime(entity) { SkyHanniMod.feature.slayer.slayerMinibossHighlight } + { arachneBossHighlighter } + RenderLivingEntityHelper.setNoHurtTime(entity) { arachneBossHighlighter } } } -- cgit