fix rect rendering before items

This commit is contained in:
Raoul Van den Berge
2015-12-20 12:30:10 +01:00
parent bbcce0598f
commit e27e4c326d
2 changed files with 6 additions and 5 deletions

View File

@@ -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) {

View File

@@ -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++;