diff options
author | Martin Robertz <dream-master@gmx.net> | 2021-07-15 16:49:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-15 16:49:25 +0200 |
commit | f2b07a2872a1c3a1825a9dad0b52e6588fef9ac0 (patch) | |
tree | 15e2ead4ef5afba9926f8aad132e1b0a5e7970ab /src/main/java/gregtech/api/gui/GT_GUIContainerMetaTile_Machine.java | |
parent | 6fb3d7f43d91dfc18a303335ae30360eb08903b0 (diff) | |
parent | 6ecf806dab6ffdb99d69c6add11492e6a7d866a4 (diff) | |
download | GT5-Unofficial-f2b07a2872a1c3a1825a9dad0b52e6588fef9ac0.tar.gz GT5-Unofficial-f2b07a2872a1c3a1825a9dad0b52e6588fef9ac0.tar.bz2 GT5-Unofficial-f2b07a2872a1c3a1825a9dad0b52e6588fef9ac0.zip |
Merge pull request #596 from GTNewHorizons/gui-color
Add option to not change GUI color based on color
Diffstat (limited to 'src/main/java/gregtech/api/gui/GT_GUIContainerMetaTile_Machine.java')
-rw-r--r-- | src/main/java/gregtech/api/gui/GT_GUIContainerMetaTile_Machine.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/gregtech/api/gui/GT_GUIContainerMetaTile_Machine.java b/src/main/java/gregtech/api/gui/GT_GUIContainerMetaTile_Machine.java index a54aa2e526..7fd4f9f0b2 100644 --- a/src/main/java/gregtech/api/gui/GT_GUIContainerMetaTile_Machine.java +++ b/src/main/java/gregtech/api/gui/GT_GUIContainerMetaTile_Machine.java @@ -27,7 +27,9 @@ public class GT_GUIContainerMetaTile_Machine extends GT_GUIContainer { @Override protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3) { super.drawGuiContainerBackgroundLayer(par1, par2, par3); - if (GregTech_API.sColoredGUI && mContainer != null && mContainer.mTileEntity != null) { + if (GregTech_API.sMachineMetalGUI) { + GL11.glColor3ub((byte) Dyes.MACHINE_METAL.mRGBa[0], (byte) Dyes.MACHINE_METAL.mRGBa[1], (byte) Dyes.MACHINE_METAL.mRGBa[2]); + } else if (GregTech_API.sColoredGUI && mContainer != null && mContainer.mTileEntity != null) { byte colorByte = mContainer.mTileEntity.getColorization(); Dyes color; if (colorByte != -1) @@ -35,7 +37,8 @@ public class GT_GUIContainerMetaTile_Machine extends GT_GUIContainer { else color = Dyes.MACHINE_METAL; GL11.glColor3ub((byte) color.mRGBa[0], (byte) color.mRGBa[1], (byte) color.mRGBa[2]); - } else + } else { GL11.glColor3ub((byte) 255, (byte) 255, (byte) 255); + } } } |