aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/gui/GT_GUIContainerMetaTile_Machine.java
diff options
context:
space:
mode:
authorbartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>2020-03-17 19:08:16 +0100
committerbartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>2020-03-17 19:08:16 +0100
commita80dcf7db33674c2aeab2d1cf943a07c521bdf0f (patch)
treed6923a6503ab888d3089c0b59d18f233c4dec85a /src/main/java/gregtech/api/gui/GT_GUIContainerMetaTile_Machine.java
parentcf85f8a93b96b1e8231ab8de7d52e52dead05c8c (diff)
downloadGT5-Unofficial-a80dcf7db33674c2aeab2d1cf943a07c521bdf0f.tar.gz
GT5-Unofficial-a80dcf7db33674c2aeab2d1cf943a07c521bdf0f.tar.bz2
GT5-Unofficial-a80dcf7db33674c2aeab2d1cf943a07c521bdf0f.zip
Refactored GT_GUIContainerMetaTile_Machine.java
Signed-off-by: bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>
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.java13
1 files changed, 8 insertions, 5 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 9cdb74c2f1..532ce85146 100644
--- a/src/main/java/gregtech/api/gui/GT_GUIContainerMetaTile_Machine.java
+++ b/src/main/java/gregtech/api/gui/GT_GUIContainerMetaTile_Machine.java
@@ -28,11 +28,14 @@ public class GT_GUIContainerMetaTile_Machine extends GT_GUIContainer {
protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3) {
super.drawGuiContainerBackgroundLayer(par1, par2, par3);
if (GregTech_API.sColoredGUI && mContainer != null && mContainer.mTileEntity != null) {
- byte colorByte=mContainer.mTileEntity.getColorization();
+ byte colorByte = mContainer.mTileEntity.getColorization();
Dyes color;
- if(colorByte != -1) color= Dyes.get(colorByte);
- else color=Dyes.MACHINE_METAL;
- GL11.glColor3ub((byte)color.mRGBa[0], (byte)color.mRGBa[1], (byte)color.mRGBa[2]);
- } else GL11.glColor3ub((byte)255,(byte)255,(byte)255);
+ if (colorByte != -1)
+ color = Dyes.get(colorByte);
+ else
+ color = Dyes.MACHINE_METAL;
+ GL11.glColor3ub((byte) color.mRGBa[0], (byte) color.mRGBa[1], (byte) color.mRGBa[2]);
+ } else
+ GL11.glColor3ub((byte) 255, (byte) 255, (byte) 255);
}
} \ No newline at end of file