Revert "Fixed powered texture not showing up when changing NPC model attributes."

This reverts commit 9560228ba8.
This commit is contained in:
luisc committed 2021-12-11 08:38:38 -06:00
1 parent fc1c16032f
commit 743cdb9db7
5 files changed
+15 -147

No files matched your search

@@ -108,22 +108,14 @@ public class RenderCustomNpc extends RenderNPCHumanMale{
this.bindTexture(poweredNPCTexture);
GL11.glMatrixMode(GL11.GL_TEXTURE);
GL11.glLoadIdentity();
float f2 = f1 * npc.display.poweredTranslateX;
float f3 = f1 * npc.display.poweredTranslateY;
float f4 = f1 * npc.display.poweredTranslateZ;
GL11.glTranslatef(f2, f3, f4);
float f2 = f1 * 0.01F;
float f3 = f1 * 0.01F;
GL11.glTranslatef(f2, f3, 0.0F);
this.setRenderPassModel(this.originalModel);
GL11.glMatrixMode(GL11.GL_MODELVIEW);
GL11.glEnable(GL11.GL_BLEND);
float f5 = npc.display.poweredRed;
float f6 = npc.display.poweredGreen;
float f7 = npc.display.poweredBlue;
float f8 = npc.display.poweredAlpha;
GL11.glColor4f(f5, f6, f7, f8);
float f4 = 0.5F;
GL11.glColor4f(f4, f4, f4, 1.0F);
GL11.glDisable(GL11.GL_LIGHTING);
GL11.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE);
return 1;