From 57688aab0d00ba2a618aa7c6a7c2cfd0efa921db Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 22 Aug 2018 15:00:00 +0200 Subject: [PATCH] Fixed steve model not sneaking correctly --- .../java/com/voxelmodpack/hdskins/gui/RenderPlayerModel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hdskins/java/com/voxelmodpack/hdskins/gui/RenderPlayerModel.java b/src/hdskins/java/com/voxelmodpack/hdskins/gui/RenderPlayerModel.java index c8519109..5cb27f3c 100644 --- a/src/hdskins/java/com/voxelmodpack/hdskins/gui/RenderPlayerModel.java +++ b/src/hdskins/java/com/voxelmodpack/hdskins/gui/RenderPlayerModel.java @@ -102,6 +102,7 @@ public class RenderPlayerModel extends RenderLiving player.bipedRightLegwear.isHidden = !parts.contains(EnumPlayerModelParts.RIGHT_PANTS_LEG); player.bipedLeftArmwear.isHidden = !parts.contains(EnumPlayerModelParts.LEFT_SLEEVE); player.bipedRightArmwear.isHidden = !parts.contains(EnumPlayerModelParts.RIGHT_SLEEVE); + player.isSneak = entity.isSneaking(); player.leftArmPose = ArmPose.EMPTY; player.rightArmPose = ArmPose.EMPTY; @@ -110,7 +111,7 @@ public class RenderPlayerModel extends RenderLiving double offset = entity.getYOffset() + entity.posY + 0.01; - if (entity.isSneaking()) { + if (player.isSneak) { y -= 0.125D; }