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 18:25:54 -0500
committerGitHub <noreply@github.com>2018-06-05 18:25:54 -0500
commit5c15ec845dd4c655a927cc02550ed964c8864655 (patch)
tree5240e9762ea06e3ce5a4685f9ec26c7e151ff767 /src/main/java/gregtech/common/blocks/GT_Block_Casings2.java
parent1ba415a2c3ff0e939382da84eecce7242a6f403b (diff)
parent4ddcc361027a994a93859302322a24c6a303d6cf (diff)
downloadGT5-Unofficial-5c15ec845dd4c655a927cc02550ed964c8864655.tar.gz
GT5-Unofficial-5c15ec845dd4c655a927cc02550ed964c8864655.tar.bz2
GT5-Unofficial-5c15ec845dd4c655a927cc02550ed964c8864655.zip
Merge pull request #126 from GTNewHorizons/feature/machinemetal
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) {