Fixed sleeves not aligning correctly with the arms when sitting

This commit is contained in:
Sollace 2021-07-08 19:16:01 +02:00
parent 82fef2e8fa
commit 1ae5a7916a

View file

@ -629,6 +629,10 @@ public abstract class AbstractPonyModel<T extends LivingEntity> extends ClientPo
} }
protected void renderSleeves(MatrixStack stack, VertexConsumer vertices, int overlayUv, int lightUv, float red, float green, float blue, float alpha) { protected void renderSleeves(MatrixStack stack, VertexConsumer vertices, int overlayUv, int lightUv, float red, float green, float blue, float alpha) {
if (!sneaking) {
body.rotate(stack);
}
leftSleeve.render(stack, vertices, overlayUv, lightUv, red, green, blue, alpha); leftSleeve.render(stack, vertices, overlayUv, lightUv, red, green, blue, alpha);
rightSleeve.render(stack, vertices, overlayUv, lightUv, red, green, blue, alpha); rightSleeve.render(stack, vertices, overlayUv, lightUv, red, green, blue, alpha);
leftPants.render(stack, vertices, overlayUv, lightUv, red, green, blue, alpha); leftPants.render(stack, vertices, overlayUv, lightUv, red, green, blue, alpha);