Fixed mis-positioned nameplates when riding

This commit is contained in:
Sollace 2018-10-28 22:24:27 +02:00
parent 85462d5a69
commit c08c2a7180

View file

@ -157,6 +157,14 @@ public class RenderPony<T extends EntityLivingBase> {
y -= 0.25F;
}
if (entity.isRiding()) {
y += entity.getRidingEntity().getEyeHeight();
}
if (entity.isPlayerSleeping()) {
y /= 2;
}
return initial + y;
}
}