Tell client NPC is being drawn

This commit is contained in:
Kam committed 2024-02-15 17:49:48 -05:00
1 parent 8c7f31f1e2
commit ec78673fa2
8 files changed
+45 -35

No files matched your search

@@ -30,6 +30,7 @@ public class GuiNPCTextures extends GuiNpcSelectionInterface
public void drawScreen(int i, int j, float f)
{
npc.isDrawn = true;
int l = (width/2)-180;
int i1 = (height/2) - 90;
GL11.glEnable(32826 /*GL_RESCALE_NORMAL_EXT*/);
@@ -61,6 +62,7 @@ public class GuiNPCTextures extends GuiNpcSelectionInterface
npc.rotationYaw = f3;
npc.rotationPitch = f4;
npc.rotationYawHead = f7;
npc.isDrawn = false;
GL11.glPopMatrix();
RenderHelper.disableStandardItemLighting();
GL11.glDisable(32826 /*GL_RESCALE_NORMAL_EXT*/);
@@ -68,7 +70,7 @@ public class GuiNPCTextures extends GuiNpcSelectionInterface
OpenGlHelper.setActiveTexture(OpenGlHelper.lightmapTexUnit);
GL11.glDisable(GL11.GL_TEXTURE_2D);
OpenGlHelper.setActiveTexture(OpenGlHelper.defaultTexUnit);
super.drawScreen(i, j, f);
}
@Override