Fixed Implosion Compressor gui closes #261

This commit is contained in:
gigabit101 2015-11-12 20:46:37 +00:00
parent 320d06e39e
commit 4d6f961b9c

View file

@ -38,21 +38,21 @@ public class GuiImplosionCompressor extends GuiContainer {
int l = (this.height - this.ySize) / 2;
this.drawTexturedModalRect(k, l, 0, 0, this.xSize, this.ySize);
int j = 0;
if (this.compresser.crafter.currentTickTime != 0) {
j = this.compresser.crafter.currentTickTime * 20 / this.compresser.crafter.currentNeededTicks;
}
if (compresser.getMutliBlock() != true) {
GuiDraw.drawTooltipBox(k + 30, l + 50 + 12 - j, 114, 10);
this.fontRendererObj.drawString(StatCollector.translateToLocal("techreborn.message.missingmultiblock"), k + 38, l + 52 + 12 - j, -1);
GuiDraw.drawTooltipBox(k + 30, l + 50 + 12 - 0, 114, 10);
this.fontRendererObj.drawString(StatCollector.translateToLocal("techreborn.message.missingmultiblock"), k + 38, l + 52 + 12 - 0, -1);
}
this.drawTexturedModalRect(k + 60, l + 38, 176, 14, j + 1, 16);
j = (int) (this.compresser.crafter.energy.getEnergy() * 12 / this.compresser.getMaxPower());
int j = 0;
this.mc.getTextureManager().bindTexture(texture);
j = compresser.getProgressScaled(24);
if (j > 0) {
this.drawTexturedModalRect(k + 16, l + 37 + 12 - j, 176, 12 - j, 14, j + 2);
this.drawTexturedModalRect(k + 60, l + 37, 176, 14, j + 1, 16);
}
j = compresser.getEnergyScaled(12);
if (j > 0) {
this.drawTexturedModalRect(k + 14, l + 36 + 12 - j, 176, 12 - j, 14, j + 2);
}
}