Backport: Fixed shadow placement on foals

This commit is contained in:
Sollace 2019-08-12 16:35:32 +02:00
parent 056caced12
commit 39727d3f9e

View file

@ -57,7 +57,7 @@ public class RenderPonyPlayer extends RenderPlayer implements IRenderPony<Abstra
public float prepareScale(AbstractClientPlayer player, float ticks) { public float prepareScale(AbstractClientPlayer player, float ticks) {
if (!player.isRiding() && !player.isPlayerSleeping()) { if (!player.isRiding() && !player.isPlayerSleeping()) {
float x = player.width/2; float x = player.width / 2 * renderPony.getPony(player).getMetadata().getSize().getScaleFactor();
float y = 0; float y = 0;
if (player.isSneaking()) { if (player.isSneaking()) {