Fixed helmets rendering at the wrong scale (whooops)

This commit is contained in:
Sollace 2019-05-29 13:07:27 +02:00
parent 9e40c6313d
commit 455c316c3a

View file

@ -892,7 +892,7 @@ public abstract class AbstractPonyModel<T extends LivingEntity> extends ClientPo
popMatrix();
pushMatrix();
transform(BodyPart.BODY);
transform(BodyPart.HEAD);
renderHelmet(scale);
popMatrix();
@ -914,12 +914,9 @@ public abstract class AbstractPonyModel<T extends LivingEntity> extends ClientPo
*/
protected void renderHead(T entity, float move, float swing, float ticks, float headYaw, float headPitch, float scale) {
head.render(scale);
headwear.render(scale);
}
protected void renderHelmet(float scale) {
head.applyTransform(scale);
headwear.render(scale);
}