Fix gas color rendering in guis

This commit is contained in:
pupnewfster authored and Dave Smith committed 2019-03-12 11:36:52 -06:00
1 parent c861c5e0b6
commit b5240bd1b6
2 files changed
+17 -2

No files matched your search

@@ -111,6 +111,12 @@ public class GuiAdvancedElectricMachine extends GuiMekanism {
int guiHeight = (height - ySize) / 2;
mc.renderEngine.bindTexture(MekanismRenderer.getBlocksTexture());
//TODO: Use GuiGasGauge?
int tint = gas.getGas().getTint();
if (tint != -1) {
MekanismRenderer.color(tint);
}
drawTexturedModalRect(guiWidth + xPos, guiHeight + yPos, gas.getGas().getSprite(), sizeX, sizeY);
MekanismRenderer.resetColor();
}
}