Fixes #260
This commit is contained in:
parent
a499cf2b09
commit
08a3636e72
4 changed files with 12 additions and 7 deletions
|
@ -52,14 +52,18 @@ public class GuiGrinder extends GuiContainer {
|
|||
if (grinder.tank.getFluidAmount() != 0) {
|
||||
IIcon fluidIcon = grinder.tank.getFluid().getFluid().getIcon();
|
||||
if (fluidIcon != null) {
|
||||
this.mc.renderEngine.bindTexture(texture);
|
||||
drawTexturedModalRect(k + 7, l + 15, 176, 31, 20, 55);
|
||||
|
||||
this.mc.renderEngine.bindTexture(TextureMap.locationBlocksTexture);
|
||||
int liquidHeight = grinder.tank.getFluidAmount() * 47 / grinder.tank.getCapacity();
|
||||
GuiUtil.drawRepeated(fluidIcon, k + 11, l + 19 + 47 - liquidHeight, 12.0D, liquidHeight, this.zLevel);
|
||||
|
||||
this.mc.renderEngine
|
||||
.bindTexture(TextureMap.locationBlocksTexture);
|
||||
int liquidHeight = grinder.tank.getFluidAmount() * 47
|
||||
/ grinder.tank.getCapacity();
|
||||
GuiUtil.drawRepeated(fluidIcon, k + 11, l + 19 + 47
|
||||
- liquidHeight, 12.0D, liquidHeight, this.zLevel);
|
||||
|
||||
this.mc.renderEngine.bindTexture(texture);
|
||||
|
||||
drawTexturedModalRect(k + 11, l + 19, 176, 86, 12, 47);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -57,7 +57,8 @@ public class GuiIndustrialSawmill extends GuiContainer {
|
|||
if (sawmill.tank.getFluidAmount() != 0) {
|
||||
IIcon fluidIcon = sawmill.tank.getFluid().getFluid().getIcon();
|
||||
if (fluidIcon != null) {
|
||||
drawTexturedModalRect(k + 7, l + 15, 176, 31, 20, 55);
|
||||
this.mc.renderEngine.bindTexture(texture);
|
||||
|
||||
|
||||
this.mc.renderEngine
|
||||
.bindTexture(TextureMap.locationBlocksTexture);
|
||||
|
@ -67,10 +68,10 @@ public class GuiIndustrialSawmill extends GuiContainer {
|
|||
- liquidHeight, 12.0D, liquidHeight, this.zLevel);
|
||||
|
||||
this.mc.renderEngine.bindTexture(texture);
|
||||
// drawTexturedModalRect(k + 7, l + 15, 176, 31, 20, 55);
|
||||
}
|
||||
}
|
||||
drawTexturedModalRect(k + 11, l + 19, 176, 86, 12, 47);
|
||||
}
|
||||
}
|
||||
|
||||
if (sawmill.getMutliBlock() != true) {
|
||||
GuiUtil.drawTooltipBox(k + 30, l + 50 + 12 - 0, 114, 10);
|
||||
this.fontRendererObj.drawString(StatCollector.translateToLocal("techreborn.message.missingmultiblock"), k + 38, l + 52 + 12 - 0, -1);
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 16 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 16 KiB |
Loading…
Add table
Reference in a new issue