mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 16:12:17 +00:00
Tell client NPC is being drawn
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user