fix rect rendering before items
This commit is contained in:
@@ -79,8 +79,8 @@ public abstract class GuiBase extends GuiContainer {
|
||||
}
|
||||
|
||||
protected void drawItem(int x, int y, ItemStack stack, boolean withOverlay) {
|
||||
zLevel = 100.0F;
|
||||
itemRender.zLevel = 100.0F;
|
||||
zLevel = 100;
|
||||
itemRender.zLevel = 100;
|
||||
|
||||
GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
|
||||
|
||||
@@ -98,8 +98,8 @@ public abstract class GuiBase extends GuiContainer {
|
||||
|
||||
GL11.glPopAttrib();
|
||||
|
||||
itemRender.zLevel = 0.0F;
|
||||
zLevel = 0.0F;
|
||||
itemRender.zLevel = 0;
|
||||
zLevel = 0;
|
||||
}
|
||||
|
||||
protected void drawString(int x, int y, String message) {
|
||||
|
||||
@@ -98,8 +98,9 @@ public class GuiGrid extends GuiMachine {
|
||||
|
||||
int color = grid.isConnected() ? -2130706433 : 0xFF5B5B5B;
|
||||
|
||||
// @TODO: make it so it renders over the item
|
||||
zLevel = 190;
|
||||
drawGradientRect(x, y, x + 16, y + 16, color, color);
|
||||
zLevel = 0;
|
||||
}
|
||||
|
||||
slot++;
|
||||
|
||||
Reference in New Issue
Block a user