diff --git a/BetterCrafting/Integrations/SpaceCore/SCRecipe.cs b/BetterCrafting/Integrations/SpaceCore/SCRecipe.cs index 45a918e..ceef062 100644 --- a/BetterCrafting/Integrations/SpaceCore/SCRecipe.cs +++ b/BetterCrafting/Integrations/SpaceCore/SCRecipe.cs @@ -42,6 +42,12 @@ public SCRecipe(string name, ICustomCraftingRecipe recipe, bool cooking, IEnumer string? test = recipe.Description; Texture2D testtwo = recipe.IconTexture; Rectangle? testthree = recipe.IconSubrect; + + if (Cooking ? + CraftingRecipe.cookingRecipes.ContainsKey(name) : + CraftingRecipe.craftingRecipes.ContainsKey(name)) { + this.CraftingRecipe = new CraftingRecipe(name, Cooking); + } } #region Identity @@ -67,7 +73,7 @@ public virtual int GetTimesCrafted(Farmer who) { return 0; } - public CraftingRecipe? CraftingRecipe => null; + public CraftingRecipe? CraftingRecipe { get; } #endregion diff --git a/Common/Common.projitems b/Common/Common.projitems index 7fa37ec..b42bad2 100644 --- a/Common/Common.projitems +++ b/Common/Common.projitems @@ -1,4 +1,4 @@ - + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) @@ -15,9 +15,9 @@ - + - + @@ -26,16 +26,16 @@ - + - - - - - - + + + + + + @@ -63,7 +63,7 @@ - + @@ -125,4 +125,4 @@ - \ No newline at end of file +