aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/gui/entity/EntityRenderer.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-04-01 01:37:55 +0200
committerLinnea Gräf <nea@nea.moe>2025-04-01 01:37:55 +0200
commitbda040c6c2cc77c9c1a06a61b2f13548d28d76ec (patch)
tree3c48dc96cfd74a6a7d167e45eaccca0bec74fb12 /src/main/kotlin/gui/entity/EntityRenderer.kt
parent4f4652bb0d50dfd37297a573ad73ef9cd1a8e92d (diff)
downloadFirmament-mc1.21.5.tar.gz
Firmament-mc1.21.5.tar.bz2
Firmament-mc1.21.5.zip
WIP: Port some 1.21.5 thingsmc1.21.5
Diffstat (limited to 'src/main/kotlin/gui/entity/EntityRenderer.kt')
-rw-r--r--src/main/kotlin/gui/entity/EntityRenderer.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/kotlin/gui/entity/EntityRenderer.kt b/src/main/kotlin/gui/entity/EntityRenderer.kt
index fd7a0c4..b4c1c7f 100644
--- a/src/main/kotlin/gui/entity/EntityRenderer.kt
+++ b/src/main/kotlin/gui/entity/EntityRenderer.kt
@@ -169,13 +169,13 @@ object EntityRenderer {
val oldBodyYaw = entity.bodyYaw
val oldYaw = entity.yaw
val oldPitch = entity.pitch
- val oldPrevHeadYaw = entity.prevHeadYaw
+ val oldPrevHeadYaw = entity.lastHeadYaw
val oldHeadYaw = entity.headYaw
entity.bodyYaw = 180.0f + targetYaw * 20.0f
entity.yaw = 180.0f + targetYaw * 40.0f
entity.pitch = -targetPitch * 20.0f
entity.headYaw = entity.yaw
- entity.prevHeadYaw = entity.yaw
+ entity.lastHeadYaw = entity.yaw
val vector3f = Vector3f(0.0f, (entity.height / 2.0f + bottomOffset).toFloat(), 0.0f)
InventoryScreen.drawEntity(
context,
@@ -190,7 +190,7 @@ object EntityRenderer {
entity.bodyYaw = oldBodyYaw
entity.yaw = oldYaw
entity.pitch = oldPitch
- entity.prevHeadYaw = oldPrevHeadYaw
+ entity.lastHeadYaw = oldPrevHeadYaw
entity.headYaw = oldHeadYaw
context.disableScissor()
}