Fixed Quantum Chest/Digital Chest stored items closes #247
This commit is contained in:
parent
9b6383a548
commit
c2dcaf1902
4 changed files with 125 additions and 92 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue