From 788a51a1ccd509bcb73e9de4fee8a0f9558f72d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?der=5Ffr=C3=BChling?= Date: Sun, 9 Jun 2024 18:00:15 -0700 Subject: [PATCH] hehe oops --- .../trainperspective/mixin/LivingEntityRendererMixin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/net/derfruhling/minecraft/create/trainperspective/mixin/LivingEntityRendererMixin.java b/common/src/main/java/net/derfruhling/minecraft/create/trainperspective/mixin/LivingEntityRendererMixin.java index b4d1ac9..41363a2 100644 --- a/common/src/main/java/net/derfruhling/minecraft/create/trainperspective/mixin/LivingEntityRendererMixin.java +++ b/common/src/main/java/net/derfruhling/minecraft/create/trainperspective/mixin/LivingEntityRendererMixin.java @@ -31,8 +31,8 @@ protected void setupRotations(LivingEntity livingEntity, PoseStack poseStack, fl height = livingEntity.getEyeHeight(); } - var lean = persp.getLean(f); - var yaw = persp.getYaw(f); + var lean = persp.getLean(h); + var yaw = persp.getYaw(h); poseStack.rotateAround(Axis.ZP.rotationDegrees(Mth.cos(Mth.DEG_TO_RAD * yaw) * lean), 0, height, 0); poseStack.rotateAround(Axis.XP.rotationDegrees(Mth.sin(Mth.DEG_TO_RAD * yaw) * -lean), 0, height, 0); }