aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/blocks/GT_Block_Casings2.java
diff options
context:
space:
mode:
authorRichard Hendricks <richardhendricks@pobox.com>2018-06-05 02:42:27 -0500
committerRichard Hendricks <richardhendricks@pobox.com>2018-06-05 02:42:27 -0500
commit4ddcc361027a994a93859302322a24c6a303d6cf (patch)
tree5240e9762ea06e3ce5a4685f9ec26c7e151ff767 /src/main/java/gregtech/common/blocks/GT_Block_Casings2.java
parent1ba415a2c3ff0e939382da84eecce7242a6f403b (diff)
downloadGT5-Unofficial-4ddcc361027a994a93859302322a24c6a303d6cf.tar.gz
GT5-Unofficial-4ddcc361027a994a93859302322a24c6a303d6cf.tar.bz2
GT5-Unofficial-4ddcc361027a994a93859302322a24c6a303d6cf.zip
Added option for disabling machinemetal tinting.
Diffstat (limited to 'src/main/java/gregtech/common/blocks/GT_Block_Casings2.java')
-rw-r--r--src/main/java/gregtech/common/blocks/GT_Block_Casings2.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Casings2.java b/src/main/java/gregtech/common/blocks/GT_Block_Casings2.java
index f8f54f9604..cc14d42f37 100644
--- a/src/main/java/gregtech/common/blocks/GT_Block_Casings2.java
+++ b/src/main/java/gregtech/common/blocks/GT_Block_Casings2.java
@@ -1,5 +1,6 @@
package gregtech.common.blocks;
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Dyes;
import gregtech.api.enums.ItemList;
import gregtech.api.enums.Textures;
@@ -56,8 +57,12 @@ public class GT_Block_Casings2
ItemList.Casing_Pipe_TungstenSteel.set(new ItemStack(this, 1, 15));
//Special handler for Pyrolyse Oven Casing
- Textures.BlockIcons.CASING_BLOCKS[22] = new GT_CopiedBlockTexture(Block.getBlockFromItem(ItemList.Casing_ULV.get(1).getItem()), 6, 0,Dyes.MACHINE_METAL.mRGBa);
- }
+ if (GregTech_API.sUseMachineMetal) {
+ Textures.BlockIcons.CASING_BLOCKS[22] = new GT_CopiedBlockTexture(Block.getBlockFromItem(ItemList.Casing_ULV.get(1).getItem()), 6, 0,Dyes.MACHINE_METAL.mRGBa);
+ } else {
+ Textures.BlockIcons.CASING_BLOCKS[22] = new GT_CopiedBlockTexture(Block.getBlockFromItem(ItemList.Casing_ULV.get(1).getItem()), 6, 0,Dyes.dyeWhite.mRGBa);
+ }
+}
public IIcon getIcon(int aSide, int aMeta) {
switch (aMeta) {