mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 16:24:23 +01:00
Properly render the body overlay with the correct scaling
This commit is contained in:
parent
b56c75d646
commit
b4cc5b161d
1 changed files with 8 additions and 9 deletions
|
@ -896,14 +896,6 @@ public abstract class AbstractPonyModel<T extends LivingEntity> extends ClientPo
|
|||
transform(BodyPart.HEAD);
|
||||
renderHelmet(scale);
|
||||
popMatrix();
|
||||
|
||||
if (textureHeight == 64) {
|
||||
pushMatrix();
|
||||
transform(BodyPart.LEGS);
|
||||
renderSleeves(scale);
|
||||
popMatrix();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -939,6 +931,10 @@ public abstract class AbstractPonyModel<T extends LivingEntity> extends ClientPo
|
|||
upperTorso.render(scale);
|
||||
body.applyTransform(scale);
|
||||
tail.renderPart(scale, entity.getUuid());
|
||||
|
||||
if (textureHeight == 64) {
|
||||
bodyOverlay.render(scale);
|
||||
}
|
||||
}
|
||||
|
||||
protected void renderLegs(float scale) {
|
||||
|
@ -950,6 +946,10 @@ public abstract class AbstractPonyModel<T extends LivingEntity> extends ClientPo
|
|||
rightArm.render(scale);
|
||||
leftLeg.render(scale);
|
||||
rightLeg.render(scale);
|
||||
|
||||
if (textureHeight == 64) {
|
||||
renderSleeves(scale);
|
||||
}
|
||||
}
|
||||
|
||||
protected void renderSleeves(float scale) {
|
||||
|
@ -957,7 +957,6 @@ public abstract class AbstractPonyModel<T extends LivingEntity> extends ClientPo
|
|||
rightArmOverlay.render(scale);
|
||||
leftLegOverlay.render(scale);
|
||||
rightArmOverlay.render(scale);
|
||||
bodyOverlay.render(scale);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue