mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Fix gas color rendering in guis
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user