mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 06:37:34 +00:00
Fixed incorrect angles rendering with full model angles in animations on players.
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user