From 9d5d204535b485432adc4cab33fbf2f6cda5f4fd Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 17 Aug 2018 16:34:08 +0200 Subject: [PATCH] Fix shadow scale on child mobs --- src/main/java/com/minelittlepony/render/RenderPonyMob.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/minelittlepony/render/RenderPonyMob.java b/src/main/java/com/minelittlepony/render/RenderPonyMob.java index 3f4c3202..b98374ee 100644 --- a/src/main/java/com/minelittlepony/render/RenderPonyMob.java +++ b/src/main/java/com/minelittlepony/render/RenderPonyMob.java @@ -62,6 +62,10 @@ public abstract class RenderPonyMob 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 {