Oredict metal integration if metal part crafting is enabled

This commit is contained in:
Bernhard Bonigl committed 2014-12-26 12:01:39 +01:00
1 parent 8c96a119a1
commit a9f9cbf108
1 file changed
+14
@@ -346,6 +346,7 @@ public class TinkerTools
{
vanillaToolRecipes();
modIntegration();
metalPartCraftingIntegration();
// Fix for chisels harvetslevel derp
if("chisel".equals(Blocks.stone.getHarvestTool(0)))
@@ -387,6 +388,19 @@ public class TinkerTools
registerPatternMaterial("compressedCobblestone1x", 18, "Stone");
}
private void metalPartCraftingIntegration()
{
if(TConstruct.pulsar.isPulseLoaded("Tinkers' Smeltery") || !PHConstruct.craftMetalTools)
return;
String[] metals = {"Iron", "Cobalt", "Ardite", "Manyullyn", "Copper", "Bronze", "Alumite", "Steel", "PigIron"};
for(String metal : metals) {
TinkerTools.registerPatternMaterial("ingot" + metal, 2, metal);
TinkerTools.registerPatternMaterial("block" + metal, 18, metal);
}
}
private void addRecipesForToolBuilder ()
{
ToolBuilder tb = ToolBuilder.instance;