Make all background slot images overlays, only render if slot is empty

This commit is contained in:
tterrag1098 committed 2015-01-13 21:37:04 -05:00
1 parent a897e7f206
commit 0d0f73db2a
5 files changed
+26 -1

No files matched your search

@@ -53,6 +53,14 @@ public class GuiChisel extends GuiContainer {
GeneralClient.bind(texture);
drawTexturedModalRect(i, j, 0, 0, xSize, ySize);
int x = (width - xSize) / 2;
int y = (height - ySize) / 2;
Slot main = (Slot) container.inventorySlots.get(InventoryChiselSelection.normalSlots);
if (main.getStack() == null) {
GuiAutoChisel.drawSlotOverlay(this, x + 14, y + 14, main, 0, ySize, 60);
}
}
@Override