From 3f1e6a84f45edc77b108c685a1f87241ed603cd9 Mon Sep 17 00:00:00 2001 From: Matthew Messinger Date: Mon, 17 Aug 2015 02:20:31 -0400 Subject: [PATCH] Fix human arm when sneaking --- src/main/java/com/minelittlepony/minelp/model/ModelPony.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/minelittlepony/minelp/model/ModelPony.java b/src/main/java/com/minelittlepony/minelp/model/ModelPony.java index d8ce91de..e539e0fb 100644 --- a/src/main/java/com/minelittlepony/minelp/model/ModelPony.java +++ b/src/main/java/com/minelittlepony/minelp/model/ModelPony.java @@ -78,9 +78,9 @@ public abstract class ModelPony extends ModelPlayer { @Override public final void setRotationAngles(float f1, float f2, float f3, float f4, float f5, float f6, Entity ent) { // set the angles for the humans in preparation for arm rendering - StackTraceElement[] stack = Thread.currentThread().getStackTrace(); // Comes from RenderPlayer.render[Left|Right]Arm? - if (stack[2].getClassName().equals(RenderPlayer.class.getName())) { + if (PMAPI.human.model != this + && Thread.currentThread().getStackTrace()[2].getClassName().equals(RenderPlayer.class.getName())) { PMAPI.human.model.setModelVisibilities((AbstractClientPlayer) ent); PMAPI.human.model.isSneak = isSneak; PMAPI.human.model.swingProgress = swingProgress;