Fixed some progress bars
This commit is contained in:
parent
ab19d71ede
commit
5ea4dedcb2
5 changed files with 30 additions and 24 deletions
|
@ -34,9 +34,8 @@ public class GuiCompressor extends GuiContainer {
|
|||
int j = 0;
|
||||
|
||||
j = compressor.getProgressScaled(24);
|
||||
// System.out.println("" + j);
|
||||
if (j > 0) {
|
||||
this.drawTexturedModalRect(k + 80, l + 35, 176, 14, j + 2, 16);
|
||||
this.drawTexturedModalRect(k + 78, l + 35, 176, 14, j + 1, 16);
|
||||
}
|
||||
|
||||
j = compressor.getEnergyScaled(12);
|
||||
|
@ -50,5 +49,4 @@ public class GuiCompressor extends GuiContainer {
|
|||
this.fontRendererObj.drawString(name, this.xSize / 2 - this.fontRendererObj.getStringWidth(name) / 2, 6, 4210752);
|
||||
this.fontRendererObj.drawString(I18n.translateToLocalFormatted("container.inventory", new Object[0]), 8, this.ySize - 96 + 2, 4210752);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ public class GuiExtractor extends GuiContainer {
|
|||
|
||||
j = extractor.getProgressScaled(24);
|
||||
if (j > 0) {
|
||||
this.drawTexturedModalRect(k + 50, l + 36, 176, 14, j + 1, 16);
|
||||
this.drawTexturedModalRect(k + 78, l + 35, 176, 14, j + 1, 16);
|
||||
}
|
||||
|
||||
j = extractor.getEnergyScaled(12);
|
||||
|
@ -49,5 +49,4 @@ public class GuiExtractor extends GuiContainer {
|
|||
this.fontRendererObj.drawString(name, this.xSize / 2 - this.fontRendererObj.getStringWidth(name) / 2, 6, 4210752);
|
||||
this.fontRendererObj.drawString(I18n.translateToLocalFormatted("container.inventory", new Object[0]), 8, this.ySize - 96 + 2, 4210752);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -34,7 +34,6 @@ public class GuiRecycler extends GuiContainer {
|
|||
int j = 0;
|
||||
|
||||
j = compressor.gaugeProgressScaled(24);
|
||||
// System.out.println(compressor.gaugeProgressScaled(10));
|
||||
if (j > 0) {
|
||||
this.drawTexturedModalRect(k + 78, l + 35, 176, 14, j + 1, 16);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue