mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-14 01:14:18 +00:00
Oredict metal integration if metal part crafting is enabled
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user