Fixed Quantum Chest/Digital Chest stored items closes #247

This commit is contained in:
gigabit101 2015-11-11 21:37:31 +00:00
parent 9b6383a548
commit c2dcaf1902
4 changed files with 125 additions and 92 deletions

View file

@ -40,7 +40,8 @@ public class GuiDigitalChest extends GuiContainer {
this.ySize - 96 + 2, 4210752);
this.fontRendererObj.drawString("Amount", 10, 20, 16448255);
if (tile.storedItem != null)
this.fontRendererObj.drawString(tile.storedItem.stackSize + "", 10,
30, 16448255);
this.fontRendererObj.drawString(tile.storedItem.stackSize + "", 10, 30, 16448255);
if (tile.storedItem == null && tile.getStackInSlot(1) != null)
this.fontRendererObj.drawString(tile.getStackInSlot(1).stackSize + "", 10, 30, 16448255);
}
}

View file

@ -40,7 +40,8 @@ public class GuiQuantumChest extends GuiContainer {
this.ySize - 96 + 2, 4210752);
this.fontRendererObj.drawString("Amount", 10, 20, 16448255);
if (tile.storedItem != null && tile.getStackInSlot(1) != null)
this.fontRendererObj.drawString(tile.storedItem.stackSize + tile.getStackInSlot(1).stackSize + "", 10,
30, 16448255);
this.fontRendererObj.drawString(tile.storedItem.stackSize + tile.getStackInSlot(1).stackSize + "", 10, 30, 16448255);
if (tile.storedItem == null && tile.getStackInSlot(1) != null)
this.fontRendererObj.drawString(tile.getStackInSlot(1).stackSize + "", 10, 30, 16448255);
}
}