mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 16:24:23 +01:00
Fixed differing vertical position between humans and ponies
This commit is contained in:
parent
74a09d7b0c
commit
402e055112
2 changed files with 3 additions and 2 deletions
|
@ -50,7 +50,9 @@ public class RenderDummyPony extends RenderDummyPlayer<DummyPony, ClientPonyMode
|
||||||
protected void scale(DummyPony entity, float ticks) {
|
protected void scale(DummyPony entity, float ticks) {
|
||||||
renderPony.preRenderCallback(entity, 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
|
@Override
|
||||||
|
|
|
@ -69,7 +69,6 @@ public class PonySkullRenderer extends SkullBlockEntityRenderer {
|
||||||
|
|
||||||
@Override
|
@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) {
|
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);
|
ISkull skull = skullMap.get(skullType);
|
||||||
|
|
||||||
if (skull == null || !skull.canRender(MineLittlePony.getInstance().getConfig())) {
|
if (skull == null || !skull.canRender(MineLittlePony.getInstance().getConfig())) {
|
||||||
|
|
Loading…
Reference in a new issue