Skip to content

Commit

Permalink
Fix rotation when swiming
Browse files Browse the repository at this point in the history
Fixes #10
  • Loading branch information
tr7zw committed Apr 16, 2020
1 parent 65e1716 commit 43e53c8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 43e53c8

Please sign in to comment.