From ecd56746aa4246784e518e377852f168af7eb092 Mon Sep 17 00:00:00 2001 From: ooffyy <72337907+realooffyy@users.noreply.github.com> Date: Thu, 7 Sep 2023 12:48:18 +0100 Subject: Fix: 3k hp spiders being falsely highlighted as Arachne's Keepers (#444) --- src/main/java/at/hannibal2/skyhanni/features/mobs/MobHighlight.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/mobs') diff --git a/src/main/java/at/hannibal2/skyhanni/features/mobs/MobHighlight.kt b/src/main/java/at/hannibal2/skyhanni/features/mobs/MobHighlight.kt index a50479f6b..8d8a3ca40 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/mobs/MobHighlight.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/mobs/MobHighlight.kt @@ -13,6 +13,7 @@ import net.minecraft.client.entity.EntityOtherPlayerMP import net.minecraft.entity.EntityLivingBase import net.minecraft.entity.monster.EntityEnderman import net.minecraft.entity.monster.EntitySpider +import net.minecraft.entity.monster.EntityCaveSpider import net.minecraftforge.fml.common.eventhandler.SubscribeEvent class MobHighlight { @@ -40,7 +41,7 @@ class MobHighlight { val entity = event.entity val maxHealth = event.maxHealth if (config.arachneKeeperHighlight) { - if (maxHealth == 3_000 && entity is EntitySpider) { + if (maxHealth == 3_000 && entity is EntityCaveSpider) { RenderLivingEntityHelper.setEntityColor(entity, LorenzColor.DARK_BLUE.toColor().withAlpha(127)) { config.arachneKeeperHighlight } RenderLivingEntityHelper.setNoHurtTime(entity) { config.arachneKeeperHighlight } @@ -106,4 +107,4 @@ class MobHighlight { { config.arachneBossHighlighter } RenderLivingEntityHelper.setNoHurtTime(entity) { config.arachneBossHighlighter } } -} \ No newline at end of file +} -- cgit