Skip to content

Commit

Permalink
#13 Ensure that player body rotation is always forward
Browse files Browse the repository at this point in the history
  • Loading branch information
der-fruhling committed Apr 22, 2024
1 parent d34368a commit f14f356
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f14f356

Please sign in to comment.