Skip to content

Commit

Permalink
Fix head rotation limiting on 1.21.3+
Browse files Browse the repository at this point in the history
  • Loading branch information
tr7zw committed Dec 9, 2024
1 parent 1fe710b commit 3b56dd7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ public static void minMaxHeadRotation(Player livingEntity, PlayerModel model) {
value = Math.min(value, max);
value = Math.max(value, min);
model.head.yRot = value;
model.hat.yRot = value;
//#if MC < 12103
//$$ model.hat.yRot = value;
//#endif
}

public static float interpolateRotation(float start, float end, float amount) {
Expand Down

0 comments on commit 3b56dd7

Please sign in to comment.