From c90713ef26f94a1b51a99aad75688112fb3016c7 Mon Sep 17 00:00:00 2001 From: Ruben Hamelink Date: Fri, 9 Aug 2019 18:35:49 +0200 Subject: [PATCH] Added recipes for crafters --- EtherealBlocks/Loaders/BlockLoader.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/EtherealBlocks/Loaders/BlockLoader.cs b/EtherealBlocks/Loaders/BlockLoader.cs index 29c98ab..6501b6d 100644 --- a/EtherealBlocks/Loaders/BlockLoader.cs +++ b/EtherealBlocks/Loaders/BlockLoader.cs @@ -63,12 +63,14 @@ public static void AfterItemTypesDefined() InventoryItem originalBlockRequirements = new InventoryItem(block.EtherealBlockIndex, 1); Recipe originalToEtherealRecipe = new Recipe(block.EtherealBlockName, etherealBlockRequirements, - new RecipeResult(block.EtherealBlockIndex, 1)); + new RecipeResult(block.EtherealBlockIndex, 1), 0, 0, -100); Recipe etherealToOriginalRecipe = new Recipe(block.OriginalBlockName, originalBlockRequirements, - new RecipeResult(block.OriginalBlockIndex, 1)); + new RecipeResult(block.OriginalBlockIndex, 1), 0, 0, -100); ServerManager.RecipeStorage.AddPlayerRecipe(originalToEtherealRecipe); ServerManager.RecipeStorage.AddPlayerRecipe(etherealToOriginalRecipe); + + ServerManager.RecipeStorage.AddLimitTypeRecipe("pipliz.crafter", originalToEtherealRecipe); } }