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

@@ -29,6 +29,7 @@ public class GuiNpcTextureOverlays 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*/);
@@ -60,6 +61,7 @@ public class GuiNpcTextureOverlays 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*/);
@@ -67,10 +69,10 @@ public class GuiNpcTextureOverlays extends GuiNpcSelectionInterface{
OpenGlHelper.setActiveTexture(OpenGlHelper.lightmapTexUnit);
GL11.glDisable(GL11.GL_TEXTURE_2D);
OpenGlHelper.setActiveTexture(OpenGlHelper.defaultTexUnit);
super.drawScreen(i, j, f);
}
@Override
public void elementClicked(){
if(dataTextures.contains(slot.selected) && slot.selected != null){