mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-23 04:57:58 +01:00
Fix shadow scale on child mobs
This commit is contained in:
parent
943019ba2e
commit
9d5d204535
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue