From dcb01dbe7b7de9d8ad438cd02764c74d5b2094a8 Mon Sep 17 00:00:00 2001 From: Tides Date: Fri, 7 Jun 2024 16:20:14 -0400 Subject: [PATCH] Update RecipeConverter.cs --- Obsidian/Utilities/Converters/RecipeConverter.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Obsidian/Utilities/Converters/RecipeConverter.cs b/Obsidian/Utilities/Converters/RecipeConverter.cs index f71aac77b..9ca590e68 100644 --- a/Obsidian/Utilities/Converters/RecipeConverter.cs +++ b/Obsidian/Utilities/Converters/RecipeConverter.cs @@ -86,13 +86,14 @@ public sealed class RecipesConverter : JsonConverter }); break; case CraftingType.Stonecutting: + var ingredient = value.GetProperty("ingredient"); recipes.Add(new CuttingRecipe { Identifier = recipeName, Type = craftingType, Group = group, - Count = value.GetProperty("count").GetInt32(), - Ingredient = value.GetProperty("ingredient").Deserialize(options)!, + Ingredient = ingredient.Deserialize(options)!, + Count = ingredient.GetProperty("count").GetInt32(),//TODO the recipe format more or less changed look into this. Result = result }); break;