From 43e53c8fd23f697f3de8011dc949170d7d545ea3 Mon Sep 17 00:00:00 2001 From: tr7zw Date: Thu, 16 Apr 2020 18:41:04 +0200 Subject: [PATCH] Fix rotation when swiming Fixes #10 --- src/main/java/de/tr7zw/firstperson/mixins/PlayerRenderMixin.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/de/tr7zw/firstperson/mixins/PlayerRenderMixin.java b/src/main/java/de/tr7zw/firstperson/mixins/PlayerRenderMixin.java index 0083b78b..e86ac868 100644 --- a/src/main/java/de/tr7zw/firstperson/mixins/PlayerRenderMixin.java +++ b/src/main/java/de/tr7zw/firstperson/mixins/PlayerRenderMixin.java @@ -69,6 +69,7 @@ public void getPositionOffset(AbstractClientPlayerEntity var1, float var2, Callb if(abstractClientPlayerEntity_1.isSneaking()){ bodyOffset = sneakBodyOffset; }else if(MinecraftClient.getInstance().player.isInSwimmingPose()) { + abstractClientPlayerEntity_1.bodyYaw = abstractClientPlayerEntity_1.headYaw; if(abstractClientPlayerEntity_1.prevPitch > 0) { bodyOffset = swimUpBodyOffset; }else {