Skip to content

Commit

Permalink
Oredict metal integration if metal part crafting is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Dec 26, 2014
1 parent 8c96a11 commit a9f9cbf
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/main/java/tconstruct/tools/TinkerTools.java
Expand Up @@ -346,6 +346,7 @@ public void postInit (FMLPostInitializationEvent evt)
{
vanillaToolRecipes();
modIntegration();
metalPartCraftingIntegration();

// Fix for chisels harvetslevel derp
if("chisel".equals(Blocks.stone.getHarvestTool(0)))
Expand Down Expand Up @@ -387,6 +388,19 @@ private void addPartMapping ()
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;
Expand Down

0 comments on commit a9f9cbf

Please sign in to comment.