diff options
| author | Muramasa <haydenkilloh@gmail.com> | 2016-08-14 07:40:20 +0100 |
|---|---|---|
| committer | Muramasa <haydenkilloh@gmail.com> | 2016-08-14 07:40:20 +0100 |
| commit | 5eb28573897020b2e60415a61e408473772c3c75 (patch) | |
| tree | 59dfa9023e5f5f5145f7bebc90f4db3a9066e8d4 /src/main/java/gregtech/api/gui | |
| parent | 30b7a0d7e83791e7186ade912e6a6d9cf0e35696 (diff) | |
| download | GT5-Unofficial-5eb28573897020b2e60415a61e408473772c3c75.tar.gz GT5-Unofficial-5eb28573897020b2e60415a61e408473772c3c75.tar.bz2 GT5-Unofficial-5eb28573897020b2e60415a61e408473772c3c75.zip | |
Bugfixes 3/2/1 fix: Remove commented code
Diffstat (limited to 'src/main/java/gregtech/api/gui')
| -rw-r--r-- | src/main/java/gregtech/api/gui/GT_GUIContainerMetaTile_Machine.java | 3 |
1 files changed, 1 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 574b111039..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,8 +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; - /* Bug kind and pattern: INT - INT_BAD_COMPARISON_WITH_NONNEGATIVE_VALUE */ - 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); |
