From f5bb3970093713dae88e6ac952a47ec4cabf8ea7 Mon Sep 17 00:00:00 2001 From: MauveCloud Date: Thu, 26 May 2016 07:43:02 -0700 Subject: [PATCH] Reinforced Block and Brittle Charcoal fixes Added fixes for #503 and #436 --- .../common/blocks/GT_Block_Reinforced.java | 2 +- .../common/blocks/GT_Material_Reinforced.java | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 src/main/java/gregtech/common/blocks/GT_Material_Reinforced.java diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Reinforced.java b/src/main/java/gregtech/common/blocks/GT_Block_Reinforced.java index 801cdbd3..d8ef031e 100644 --- a/src/main/java/gregtech/common/blocks/GT_Block_Reinforced.java +++ b/src/main/java/gregtech/common/blocks/GT_Block_Reinforced.java @@ -40,7 +40,7 @@ import java.util.Random; public class GT_Block_Reinforced extends GT_Generic_Block { public GT_Block_Reinforced(String aName) { - super(GT_Item_Storage.class, aName, new Material(net.minecraft.block.material.MapColor.stoneColor)); + super(GT_Item_Storage.class, aName, new GT_Material_Reinforced()); setStepSound(soundTypeStone); setCreativeTab(GregTech_API.TAB_GREGTECH); GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".0.name", "Bronzeplate Reinforced Block"); diff --git a/src/main/java/gregtech/common/blocks/GT_Material_Reinforced.java b/src/main/java/gregtech/common/blocks/GT_Material_Reinforced.java new file mode 100644 index 00000000..67d112b9 --- /dev/null +++ b/src/main/java/gregtech/common/blocks/GT_Material_Reinforced.java @@ -0,0 +1,17 @@ +package gregtech.common.blocks; + +import net.minecraft.block.material.MapColor; +import net.minecraft.block.material.Material; + +public class GT_Material_Reinforced + extends Material { + public GT_Material_Machines() { + super(MapColor.stoneColor); + setRequiresTool(); + setAdventureModeExempt(); + } + + public boolean isOpaque() { + return false; + } +}