Fixed leggings and boots alignment when crouching. Closes #227

This commit is contained in:
Sollace 2023-02-15 14:35:23 +00:00
parent 4d0f02e791
commit e54183565b

View file

@ -51,8 +51,8 @@ public abstract class AbstractPonyModel<T extends LivingEntity> extends ClientPo
.add(withStage(BodyPart.BODY, bodyRenderList = RenderList.of(body, upperTorso).add(body::rotate)))
.add(withStage(BodyPart.NECK, neckRenderList = RenderList.of(neck)))
.add(withStage(BodyPart.HEAD, headRenderList = RenderList.of(head)))
.add(withStage(BodyPart.LEGS, legsRenderList = RenderList.of().add(this::rotateForBody).add(leftArm, rightArm, leftLeg, rightLeg)))
.add(withStage(BodyPart.LEGS, sleevesRenderList = RenderList.of().add(this::rotateForBody).add(leftSleeve, rightSleeve, leftPants, rightPants)))
.add(withStage(BodyPart.LEGS, legsRenderList = RenderList.of().add(leftArm, rightArm, leftLeg, rightLeg)))
.add(withStage(BodyPart.LEGS, sleevesRenderList = RenderList.of().add(leftSleeve, rightSleeve, leftPants, rightPants)))
.add(withStage(BodyPart.BODY, vestRenderList = RenderList.of(jacket, upperTorsoOverlay)))
.add(withStage(BodyPart.HEAD, helmetRenderList = RenderList.of(hat)));
}
@ -590,12 +590,6 @@ public abstract class AbstractPonyModel<T extends LivingEntity> extends ClientPo
}
}
protected void rotateForBody(MatrixStack stack) {
if (!sneaking) {
body.rotate(stack);
}
}
@Override
public void setVisible(boolean visible) {
super.setVisible(visible);