Fix shadow scale on child mobs

This commit is contained in:
Sollace 2018-08-17 16:34:08 +02:00
parent 943019ba2e
commit 9d5d204535

View file

@ -62,6 +62,10 @@ public abstract class RenderPonyMob<T extends EntityLiving> extends RenderLiving
renderPony.preRenderCallback(entity, ticks);
shadowSize = renderPony.getShadowScale();
if (entity.isChild()) {
shadowSize *= 3; // undo vanilla shadow scaling
}
if (!entity.isRiding()) {
GlStateManager.translate(0, 0, -entity.width / 2); // move us to the center of the shadow
} else {