Rotate player arms to put the front up

This commit is contained in:
Sollace 2018-08-17 15:33:19 +02:00
parent d59ec9514f
commit 09f8a99066

View file

@ -152,8 +152,10 @@ public class RenderPonyPlayer extends RenderPlayer implements IRenderPony<Abstra
protected void renderArm(AbstractClientPlayer player, EnumHandSide side) { protected void renderArm(AbstractClientPlayer player, EnumHandSide side) {
renderPony.updateModel(player); renderPony.updateModel(player);
bindEntityTexture(player); bindEntityTexture(player);
GlStateManager.pushMatrix(); GlStateManager.pushMatrix();
GlStateManager.translate(side == EnumHandSide.LEFT ? 0.2 : -0.2, -0.65, 0); GlStateManager.translate(side == EnumHandSide.LEFT ? 0.35 : -0.35, -0.6, 0);
GlStateManager.rotate(side == EnumHandSide.LEFT ? -90 : 90, 0, 1, 0);
if (side == EnumHandSide.LEFT) { if (side == EnumHandSide.LEFT) {
super.renderLeftArm(player); super.renderLeftArm(player);