mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-26 22:38:00 +01:00
Fixed preview players acting like they were holding an item after entering and leaving a world
This commit is contained in:
parent
a92a121a5b
commit
62a0be23ad
1 changed files with 4 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
package com.voxelmodpack.hdskins.gui;
|
package com.voxelmodpack.hdskins.gui;
|
||||||
|
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
|
import net.minecraft.client.model.ModelBiped.ArmPose;
|
||||||
import net.minecraft.client.model.ModelElytra;
|
import net.minecraft.client.model.ModelElytra;
|
||||||
import net.minecraft.client.model.ModelPlayer;
|
import net.minecraft.client.model.ModelPlayer;
|
||||||
import net.minecraft.client.renderer.GlStateManager;
|
import net.minecraft.client.renderer.GlStateManager;
|
||||||
|
@ -99,6 +100,9 @@ public class RenderPlayerModel<M extends EntityPlayerModel> extends RenderLiving
|
||||||
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.leftArmPose = ArmPose.EMPTY;
|
||||||
|
player.rightArmPose = ArmPose.EMPTY;
|
||||||
|
|
||||||
GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
|
GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
|
||||||
super.doRender(par1Entity, par2, par4, par6, par8, par9);
|
super.doRender(par1Entity, par2, par4, par6, par8, par9);
|
||||||
popAttrib();
|
popAttrib();
|
||||||
|
|
Loading…
Reference in a new issue