diff options
author | Richard Hendricks <richardhendricks@pobox.com> | 2018-06-05 02:42:27 -0500 |
---|---|---|
committer | Richard Hendricks <richardhendricks@pobox.com> | 2018-06-05 02:42:27 -0500 |
commit | 4ddcc361027a994a93859302322a24c6a303d6cf (patch) | |
tree | 5240e9762ea06e3ce5a4685f9ec26c7e151ff767 /src/main/java/gregtech/common/blocks/GT_Block_Casings2.java | |
parent | 1ba415a2c3ff0e939382da84eecce7242a6f403b (diff) | |
download | GT5-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.java | 9 |
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) {
|