Fix #843, Some fluids dont have a texture so they wont render.
This commit is contained in:
parent
cb69f10c88
commit
75c82353fa
3 changed files with 4 additions and 2 deletions
|
@ -18,8 +18,6 @@ public class ContainerSemifluidGenerator extends RebornContainer {
|
|||
|
||||
this.addSlotToContainer(new BaseSlot(tileSemifluidGenerator.inventory, 0, 80, 17));
|
||||
this.addSlotToContainer(new SlotOutput(tileSemifluidGenerator.inventory, 1, 80, 53));
|
||||
this.addSlotToContainer(new SlotFake(tileSemifluidGenerator.inventory, 2, 59, 42, false, false, 1));
|
||||
|
||||
int i;
|
||||
|
||||
for (i = 0; i < 3; ++i) {
|
||||
|
|
|
@ -5,6 +5,7 @@ import net.minecraft.client.renderer.GlStateManager;
|
|||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.text.translation.I18n;
|
||||
import reborncore.client.RenderUtil;
|
||||
import techreborn.client.container.ContainerSemifluidGenerator;
|
||||
import techreborn.tiles.generator.TileSemifluidGenerator;
|
||||
|
||||
|
@ -30,6 +31,7 @@ public class GuiSemifluidGenerator extends GuiContainer {
|
|||
int k = (this.width - this.xSize) / 2;
|
||||
int l = (this.height - this.ySize) / 2;
|
||||
this.drawTexturedModalRect(k, l, 0, 0, this.xSize, this.ySize);
|
||||
RenderUtil.renderGuiTank(tile.tank.getFluid(), 16, 16, k + 59, l + 42, this.zLevel, 16, 16);
|
||||
}
|
||||
|
||||
protected void drawGuiContainerForegroundLayer(int p_146979_1_, int p_146979_2_) {
|
||||
|
|
|
@ -5,6 +5,7 @@ import net.minecraft.client.renderer.GlStateManager;
|
|||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.text.translation.I18n;
|
||||
import reborncore.client.RenderUtil;
|
||||
import techreborn.client.container.ContainerThermalGenerator;
|
||||
import techreborn.tiles.generator.TileThermalGenerator;
|
||||
|
||||
|
@ -29,6 +30,7 @@ public class GuiThermalGenerator extends GuiContainer {
|
|||
int k = (this.width - this.xSize) / 2;
|
||||
int l = (this.height - this.ySize) / 2;
|
||||
this.drawTexturedModalRect(k, l, 0, 0, this.xSize, this.ySize);
|
||||
RenderUtil.renderGuiTank(tile.tank.getFluid(), 16, 16, k + 59, l + 42, this.zLevel, 16, 16);
|
||||
}
|
||||
|
||||
protected void drawGuiContainerForegroundLayer(int p_146979_1_, int p_146979_2_) {
|
||||
|
|
Loading…
Add table
Reference in a new issue