private static void HandleCraftTreeAddition(IAddedRecipe addedRecipe) { var craftPath = new CraftingPath(addedRecipe.Path); string[] steps = craftPath.Path.Split(CraftingNode.Splitter); if (steps.Length <= 1) { CraftTreeHandler.AddCraftingNode(craftPath.Scheme, addedRecipe.ItemID); } else { CraftTreeHandler.AddCraftingNode(craftPath.Scheme, addedRecipe.ItemID, steps); } }
public static void AddRecipe(TechType craftedItem, TechData recipe, CraftingPath craftingPath) { AddRecipe(craftedItem, recipe, craftingPath.Scheme, craftingPath.Path); }