aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-05 23:58:35 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-05 23:59:09 +0200
commit84b7b6820ce431da4be6ce634307f4a0abb07d1c (patch)
treef484ac983a80c7c081bcbfa7cc1aaf3f27f5cc49 /src/main/java/at/hannibal2
parentc66f76a618b5a25f92767ed36fda254d81c302ff (diff)
downloadskyhanni-84b7b6820ce431da4be6ce634307f4a0abb07d1c.tar.gz
skyhanni-84b7b6820ce431da4be6ce634307f4a0abb07d1c.tar.bz2
skyhanni-84b7b6820ce431da4be6ce634307f4a0abb07d1c.zip
Fixed bug that arachne highlights do not work when slayer miniboss highlighter is disabled
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/damageindicator/MobFinder.kt14
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 }
}
}