Skip to content

Commit

Permalink
hehe oops
Browse files Browse the repository at this point in the history
  • Loading branch information
der-fruhling committed Jun 10, 2024
1 parent c620861 commit 788a51a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ protected void setupRotations(LivingEntity livingEntity, PoseStack poseStack, fl
height = livingEntity.getEyeHeight();
}

var lean = persp.getLean(f);
var yaw = persp.getYaw(f);
var lean = persp.getLean(h);
var yaw = persp.getYaw(h);
poseStack.rotateAround(Axis.ZP.rotationDegrees(Mth.cos(Mth.DEG_TO_RAD * yaw) * lean), 0, height, 0);
poseStack.rotateAround(Axis.XP.rotationDegrees(Mth.sin(Mth.DEG_TO_RAD * yaw) * -lean), 0, height, 0);
}
Expand Down

0 comments on commit 788a51a

Please sign in to comment.