Improved brittle charcoal handling.

This commit is contained in:
MauveCloud 2016-04-28 11:30:00 -07:00
parent 9036858017
commit a88988770b

View file

@ -40,7 +40,7 @@ import java.util.Random;
public class GT_Block_Reinforced extends GT_Generic_Block { public class GT_Block_Reinforced extends GT_Generic_Block {
public GT_Block_Reinforced(String aName) { public GT_Block_Reinforced(String aName) {
super(GT_Item_Storage.class, aName, Material.rock); super(GT_Item_Storage.class, aName, new Material(net.minecraft.block.material.MapColor.stoneColor));
setStepSound(soundTypeStone); setStepSound(soundTypeStone);
setCreativeTab(GregTech_API.TAB_GREGTECH); setCreativeTab(GregTech_API.TAB_GREGTECH);
GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".0.name", "Bronzeplate Reinforced Block"); GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".0.name", "Bronzeplate Reinforced Block");
@ -65,7 +65,8 @@ public class GT_Block_Reinforced extends GT_Generic_Block {
} }
public String getHarvestTool(int aMeta) { public String getHarvestTool(int aMeta) {
if (aMeta == 4||aMeta == 5) return "axe"; if (aMeta == 4) return "shovel";
if (aMeta == 5) return "axe";
return "pickaxe"; return "pickaxe";
} }
@ -98,6 +99,9 @@ public class GT_Block_Reinforced extends GT_Generic_Block {
if (aWorld == null) { if (aWorld == null) {
return 0.0F; return 0.0F;
} }
if (aWorld.isAirBlock(aX, aY, aZ)) {
return 0.0F;
}
int tMeta = aWorld.getBlockMetadata(aX, aY, aZ); int tMeta = aWorld.getBlockMetadata(aX, aY, aZ);
if (tMeta == 0) { if (tMeta == 0) {
return 60.0F; return 60.0F;