summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-24 12:54:08 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-24 12:54:08 +0100
commit6cc4452dfc42a845261ebbb6b4558020bf715ae7 (patch)
tree4f08870c92c8cc9809bc4670273312bb444c9c65 /src/main/java/at/hannibal2/skyhanni/features
parent6e38916afbc66c8cc623f6d61b96101e64319c73 (diff)
downloadskyhanni-6cc4452dfc42a845261ebbb6b4558020bf715ae7.tar.gz
skyhanni-6cc4452dfc42a845261ebbb6b4558020bf715ae7.tar.bz2
skyhanni-6cc4452dfc42a845261ebbb6b4558020bf715ae7.zip
Fixed special zealot detection during Derpy.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/combat/mobs/MobHighlight.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/combat/mobs/MobHighlight.kt b/src/main/java/at/hannibal2/skyhanni/features/combat/mobs/MobHighlight.kt
index c3df8091d..410f6ea98 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/combat/mobs/MobHighlight.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/combat/mobs/MobHighlight.kt
@@ -9,6 +9,7 @@ import at.hannibal2.skyhanni.utils.EntityUtils.hasNameTagWith
import at.hannibal2.skyhanni.utils.LorenzColor
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.LorenzUtils.baseMaxHealth
+import at.hannibal2.skyhanni.utils.LorenzUtils.ignoreDerpy
import net.minecraft.client.entity.EntityOtherPlayerMP
import net.minecraft.entity.EntityLivingBase
import net.minecraft.entity.monster.EntityCaveSpider
@@ -60,7 +61,8 @@ class MobHighlight {
}
}
- if (config.specialZealotHighlighter && maxHealth == 2_000 && entity is EntityEnderman) {
+ // Special Zealots are not impacted by derpy
+ if (config.specialZealotHighlighter && maxHealth.ignoreDerpy() == 2_000 && entity is EntityEnderman) {
RenderLivingEntityHelper.setEntityColor(entity, LorenzColor.DARK_RED.toColor().withAlpha(50))
{ config.specialZealotHighlighter }
RenderLivingEntityHelper.setNoHurtTime(entity) { config.specialZealotHighlighter }