aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/gui/GT_GUIContainerMetaTile_Machine.java
diff options
context:
space:
mode:
authorMuramasa- <haydenkilloh@gmail.com>2016-09-20 17:03:18 +0100
committerGitHub <noreply@github.com>2016-09-20 17:03:18 +0100
commit8f2e13681b91a6e531ee9c199cbf78be077e6381 (patch)
treee59861327c07b8a4f63632d0c57afc4b4f274d6c /src/main/java/gregtech/api/gui/GT_GUIContainerMetaTile_Machine.java
parenta03fc7fc1dcc57168e567fbdd09afdd895ce2570 (diff)
parent312141cd1096a19d07aa0a5186cd3e7eeee51a9d (diff)
downloadGT5-Unofficial-8f2e13681b91a6e531ee9c199cbf78be077e6381.tar.gz
GT5-Unofficial-8f2e13681b91a6e531ee9c199cbf78be077e6381.tar.bz2
GT5-Unofficial-8f2e13681b91a6e531ee9c199cbf78be077e6381.zip
Merge pull request #632 from Muramasa-/Bugfixes
Various Bugfixes
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.java2
1 files changed, 1 insertions, 1 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 4c20715e68..b9cae3e0b3 100644
--- a/src/main/java/gregtech/api/gui/GT_GUIContainerMetaTile_Machine.java
+++ b/src/main/java/gregtech/api/gui/GT_GUIContainerMetaTile_Machine.java
@@ -29,7 +29,7 @@ public class GT_GUIContainerMetaTile_Machine extends GT_GUIContainer {
super.drawGuiContainerBackgroundLayer(par1, par2, par3);
if (GregTech_API.sColoredGUI && mContainer != null && mContainer.mTileEntity != null) {
int tColor = mContainer.mTileEntity.getColorization() & 15;
- if (tColor >= 0 && tColor < ItemDye.field_150922_c.length) {
+ if (tColor < ItemDye.field_150922_c.length) {
tColor = ItemDye.field_150922_c[tColor];
GL11.glColor4f(((tColor >> 16) & 255) / 255.0F, ((tColor >> 8) & 255) / 255.0F, (tColor & 255) / 255.0F, 1.0F);
} else GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);