diff options
author | ooffyy <72337907+realooffyy@users.noreply.github.com> | 2023-09-07 12:48:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-07 13:48:18 +0200 |
commit | ecd56746aa4246784e518e377852f168af7eb092 (patch) | |
tree | d43bfe7eabc9f8049951acdab51dcaeb427cef45 /src/main | |
parent | 9ac0494d86bc8a65b5075e749153e0cc6fa54ad2 (diff) | |
download | skyhanni-ecd56746aa4246784e518e377852f168af7eb092.tar.gz skyhanni-ecd56746aa4246784e518e377852f168af7eb092.tar.bz2 skyhanni-ecd56746aa4246784e518e377852f168af7eb092.zip |
Fix: 3k hp spiders being falsely highlighted as Arachne's Keepers (#444)
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/mobs/MobHighlight.kt | 5 |
1 files changed, 3 insertions, 2 deletions
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 +} |