Fixed steve model not sneaking correctly

This commit is contained in:
Sollace 2018-08-22 15:00:00 +02:00
parent 60fbd430b3
commit 57688aab0d

View file

@ -102,6 +102,7 @@ public class RenderPlayerModel<M extends EntityPlayerModel> extends RenderLiving
player.bipedRightLegwear.isHidden = !parts.contains(EnumPlayerModelParts.RIGHT_PANTS_LEG); player.bipedRightLegwear.isHidden = !parts.contains(EnumPlayerModelParts.RIGHT_PANTS_LEG);
player.bipedLeftArmwear.isHidden = !parts.contains(EnumPlayerModelParts.LEFT_SLEEVE); player.bipedLeftArmwear.isHidden = !parts.contains(EnumPlayerModelParts.LEFT_SLEEVE);
player.bipedRightArmwear.isHidden = !parts.contains(EnumPlayerModelParts.RIGHT_SLEEVE); player.bipedRightArmwear.isHidden = !parts.contains(EnumPlayerModelParts.RIGHT_SLEEVE);
player.isSneak = entity.isSneaking();
player.leftArmPose = ArmPose.EMPTY; player.leftArmPose = ArmPose.EMPTY;
player.rightArmPose = ArmPose.EMPTY; player.rightArmPose = ArmPose.EMPTY;
@ -110,7 +111,7 @@ public class RenderPlayerModel<M extends EntityPlayerModel> extends RenderLiving
double offset = entity.getYOffset() + entity.posY + 0.01; double offset = entity.getYOffset() + entity.posY + 0.01;
if (entity.isSneaking()) { if (player.isSneak) {
y -= 0.125D; y -= 0.125D;
} }