Skip to content

Commit

Permalink
od fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SubAt0m1c committed Oct 30, 2024
1 parent f861949 commit 3f27892
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ object RenderOptimizer : Module(

private fun handleHealerFairy(entity: Entity) {
val armorStand = entity as? EntityArmorStand ?: return
if (armorStand.heldItem?.item == Items.skull && getHealerFairyTextureValue(armorStand) == HEALER_FAIRY_TEXTURE)
if (armorStand.heldItem?.item == Items.skull && armorStand.heldItem?.skullTexture == HEALER_FAIRY_TEXTURE)
armorStand.setDead()
}

Expand Down Expand Up @@ -138,6 +138,4 @@ object RenderOptimizer : Module(
if (entity.customNameTag.noControlCodes.startsWith("[Lv15] Blaze "))
entity.alwaysRenderNameTag = false
}

private fun getHealerFairyTextureValue(armorStand: EntityArmorStand?): String? = armorStand?.heldItem?.skullTexture
}

0 comments on commit 3f27892

Please sign in to comment.