mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-14 02:34:10 +00:00
Arm Rendering Fix
This commit is contained in:
1 parent
cd3d8ccdbb
commit
1be9a27c1c
1 file changed
+3
-1
@@ -792,7 +792,6 @@ public class ModelMPM extends ModelNPCMale{
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
public void renderArms(EntityCustomNpc entity, float f, boolean bo){
|
||||
loadPlayerTexture(entity);
|
||||
ModelScalePart arms = entity.modelData.modelScale.arms;
|
||||
|
||||
float x = (1 - entity.modelData.modelScale.body.scaleX) * 0.25f + (1 - arms.scaleX) * 0.075f;
|
||||
@@ -857,9 +856,12 @@ public class ModelMPM extends ModelNPCMale{
|
||||
this.solidLeftArmWear.isHidden = true;
|
||||
}
|
||||
|
||||
loadPlayerTexture(entity);
|
||||
if(!bo){
|
||||
((ModelScaleRenderer)this.bipedLeftArm).setConfig(arms,-x,y,z);
|
||||
((ModelScaleRenderer)this.bipedLeftArm).render(f);
|
||||
|
||||
loadPlayerTexture(entity);
|
||||
((ModelScaleRenderer)this.bipedRightArm).setConfig(arms,x,y,z);
|
||||
((ModelScaleRenderer)this.bipedRightArm).render(f);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user