diff --git a/src/main/java/com/minelittlepony/client/mixin/MixinClientPlayerEntity.java b/src/main/java/com/minelittlepony/client/mixin/MixinClientPlayerEntity.java index dc50ae60..e213643f 100644 --- a/src/main/java/com/minelittlepony/client/mixin/MixinClientPlayerEntity.java +++ b/src/main/java/com/minelittlepony/client/mixin/MixinClientPlayerEntity.java @@ -47,14 +47,17 @@ abstract class MixinClientPlayerEntity extends AbstractClientPlayerEntity implem IPony pony = MineLittlePony.getInstance().getManager().getPony(this); if (!pony.getRace(false).isHuman()) { - value *= pony.getMetadata().getSize().getEyeHeightFactor(); + float factor = pony.getMetadata().getSize().getEyeHeightFactor(); + if (factor != 1) { + value *= factor; - if (hasVehicle()) { - value += getVehicle().getEyeHeight(getVehicle().getPose()); - value -= getVehicle().getMountedHeightOffset(); + if (hasVehicle()) { + value += getVehicle().getEyeHeight(getVehicle().getPose()); + value -= getVehicle().getMountedHeightOffset(); + } + + return Math.max(value, 0.1F); } - - return Math.max(value, 0.1F); } return value;