Fixed incorrect angles rendering with full model angles in animations on players.

This commit is contained in:
luisc committed 2024-02-26 16:55:42 -06:00
1 parent 4ab8fd761a
commit d7f4de989a
1 file changed
+2 -2
@@ -32,8 +32,8 @@ public abstract class MixinRenderPlayer {
part.interpolateAngles();
float pi = 180 / (float) Math.PI;
GL11.glTranslatef(part.prevPivots[0], part.prevPivots[1], part.prevPivots[2]);
GL11.glRotatef(part.prevRotations[0] * pi, 1, 0, 0);
GL11.glRotatef(part.prevRotations[1] * pi, 0, 1, 0);
GL11.glRotatef(-part.prevRotations[0] * pi, 1, 0, 0);
GL11.glRotatef(-part.prevRotations[1] * pi, 0, 1, 0);
GL11.glRotatef(part.prevRotations[2] * pi, 0, 0, 1);
}
}