From f14f35673002ab26ff9b3d02ff052eab4c197572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?der=5Ffr=C3=BChling?= Date: Mon, 22 Apr 2024 12:52:43 -0700 Subject: [PATCH] #13 Ensure that player body rotation is always forward --- .../create/trainperspective/CreateTrainPerspectiveMod.java | 1 + 1 file changed, 1 insertion(+) diff --git a/common/src/main/java/net/derfruhling/minecraft/create/trainperspective/CreateTrainPerspectiveMod.java b/common/src/main/java/net/derfruhling/minecraft/create/trainperspective/CreateTrainPerspectiveMod.java index 184aae1..18b279b 100644 --- a/common/src/main/java/net/derfruhling/minecraft/create/trainperspective/CreateTrainPerspectiveMod.java +++ b/common/src/main/java/net/derfruhling/minecraft/create/trainperspective/CreateTrainPerspectiveMod.java @@ -106,6 +106,7 @@ private void tickState(LocalPlayer player) { persp.setLean(state.entity.pitch); persp.setYaw(state.entity.yaw); player.setYRot(player.getYRot() + state.getYawDelta()); + player.setYBodyRot(player.getYRot()); } public void onTickPlayer(final Player player) {