From 62a0be23ad361e84b1b6f402594a9aa310028a43 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 7 Jul 2018 14:28:13 +0200 Subject: [PATCH] Fixed preview players acting like they were holding an item after entering and leaving a world --- .../java/com/voxelmodpack/hdskins/gui/RenderPlayerModel.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hdskins/java/com/voxelmodpack/hdskins/gui/RenderPlayerModel.java b/src/hdskins/java/com/voxelmodpack/hdskins/gui/RenderPlayerModel.java index 1b23270e..544eab00 100644 --- a/src/hdskins/java/com/voxelmodpack/hdskins/gui/RenderPlayerModel.java +++ b/src/hdskins/java/com/voxelmodpack/hdskins/gui/RenderPlayerModel.java @@ -1,6 +1,7 @@ package com.voxelmodpack.hdskins.gui; import net.minecraft.client.Minecraft; +import net.minecraft.client.model.ModelBiped.ArmPose; import net.minecraft.client.model.ModelElytra; import net.minecraft.client.model.ModelPlayer; import net.minecraft.client.renderer.GlStateManager; @@ -99,6 +100,9 @@ public class RenderPlayerModel extends RenderLiving player.bipedLeftArmwear.isHidden = !parts.contains(EnumPlayerModelParts.LEFT_SLEEVE); player.bipedRightArmwear.isHidden = !parts.contains(EnumPlayerModelParts.RIGHT_SLEEVE); + player.leftArmPose = ArmPose.EMPTY; + player.rightArmPose = ArmPose.EMPTY; + GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS); super.doRender(par1Entity, par2, par4, par6, par8, par9); popAttrib();