Tiered Gas Tanks and tiered Fluid Tanks!

This commit is contained in:
aidancbrady committed 2016-02-24 17:01:43 -05:00
1 parent 08b6490bd3
commit 3c1496740c
40 files changed
+498 -171

No files matched your search

@@ -46,7 +46,7 @@ public class GuiGasTank extends GuiMekanism
int xAxis = (mouseX - (width - xSize) / 2);
int yAxis = (mouseY - (height - ySize) / 2);
String capacityInfo = tileEntity.gasTank.getStored() + "/" + tileEntity.MAX_GAS;
String capacityInfo = tileEntity.gasTank.getStored() + "/" + tileEntity.tier.storage;
fontRendererObj.drawString(tileEntity.getInventoryName(), (xSize / 2) - (fontRendererObj.getStringWidth(tileEntity.getInventoryName()) / 2), 6, 0x404040);
fontRendererObj.drawString(capacityInfo, 45, 40, 0x404040);
@@ -74,7 +74,7 @@ public class GuiGasTank extends GuiMekanism
if(tileEntity.gasTank.getGas() != null)
{
int scale = (int)(((double)tileEntity.gasTank.getStored() / tileEntity.MAX_GAS) * 72);
int scale = (int)(((double)tileEntity.gasTank.getStored() / tileEntity.tier.storage) * 72);
drawTexturedModalRect(guiWidth + 65, guiHeight + 17, 176, 0, scale, 10);
}