From 35e9ef750be9f74f3b5b2777cfd322e35b77d2b4 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sun, 29 Apr 2018 23:06:34 +0200 Subject: [PATCH] Fixed leg outset being encorrect for normal width legs --- .../java/com/minelittlepony/model/AbstractPonyModel.java | 6 +++--- .../com/minelittlepony/model/player/ModelEarthPony.java | 6 +++++- .../com/minelittlepony/model/ponies/ModelSkeletonPony.java | 6 ++++++ 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/minelittlepony/model/AbstractPonyModel.java b/src/main/java/com/minelittlepony/model/AbstractPonyModel.java index 32a3d4be..dae74b50 100644 --- a/src/main/java/com/minelittlepony/model/AbstractPonyModel.java +++ b/src/main/java/com/minelittlepony/model/AbstractPonyModel.java @@ -229,9 +229,9 @@ public abstract class AbstractPonyModel extends ModelPlayer implements IModel { } protected float getLegOutset() { - if (isSleeping) return 2.6f; - if (isCrouching()) return 0; - return 4; + if (isSleeping) return 3.6f; + if (isCrouching()) return 1; + return 5; } protected float getLegSpread() { diff --git a/src/main/java/com/minelittlepony/model/player/ModelEarthPony.java b/src/main/java/com/minelittlepony/model/player/ModelEarthPony.java index f66d83c9..51895e34 100644 --- a/src/main/java/com/minelittlepony/model/player/ModelEarthPony.java +++ b/src/main/java/com/minelittlepony/model/player/ModelEarthPony.java @@ -26,7 +26,11 @@ public class ModelEarthPony extends AbstractPonyModel { } protected float getLegOutset() { - if (isCrouching() && smallArms) return 1; + if (smallArms) { + if (isSleeping) return 2.6f; + if (isCrouching()) return 1; + return 4; + } return super.getLegOutset(); } diff --git a/src/main/java/com/minelittlepony/model/ponies/ModelSkeletonPony.java b/src/main/java/com/minelittlepony/model/ponies/ModelSkeletonPony.java index 586ccfa6..0e999a26 100644 --- a/src/main/java/com/minelittlepony/model/ponies/ModelSkeletonPony.java +++ b/src/main/java/com/minelittlepony/model/ponies/ModelSkeletonPony.java @@ -48,6 +48,12 @@ public class ModelSkeletonPony extends ModelMobPony { } } + protected float getLegOutset() { + if (isSleeping) return 2.6f; + if (isCrouching()) return 0; + return 4; + } + protected int getArmWidth() { return 2; }