diff options
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/damageindicator/MobFinder.kt | 14 |
1 files changed, 8 insertions, 6 deletions
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 } } } |