Fixed differing vertical position between humans and ponies

This commit is contained in:
Sollace 2019-07-16 11:50:50 +02:00
parent 74a09d7b0c
commit 402e055112
2 changed files with 3 additions and 2 deletions

View file

@ -50,7 +50,9 @@ public class RenderDummyPony extends RenderDummyPlayer<DummyPony, ClientPonyMode
protected void scale(DummyPony entity, float ticks) {
renderPony.preRenderCallback(entity, ticks);
GlStateManager.translatef(0, 0, -entity.getWidth() / 2); // move us to the center of the shadow
if (entity.hasVehicle()) {
GlStateManager.translated(0, entity.getHeightOffset(), 0);
}
}
@Override

View file

@ -69,7 +69,6 @@ public class PonySkullRenderer extends SkullBlockEntityRenderer {
@Override
public void render(float x, float y, float z, @Nullable Direction facing, float rotation, SkullBlock.SkullType skullType, @Nullable GameProfile profile, int destroyStage, float animateTicks) {
ISkull skull = skullMap.get(skullType);
if (skull == null || !skull.canRender(MineLittlePony.getInstance().getConfig())) {