From 4ddcc361027a994a93859302322a24c6a303d6cf Mon Sep 17 00:00:00 2001 From: Richard Hendricks Date: Tue, 5 Jun 2018 02:42:27 -0500 Subject: Added option for disabling machinemetal tinting. --- src/main/java/gregtech/common/blocks/GT_Block_Casings2.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/main/java/gregtech/common/blocks/GT_Block_Casings2.java') 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) { -- cgit