Skip to content

Commit

Permalink
Update RecipeConverter.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tides committed Jun 7, 2024
1 parent c704a89 commit dcb01db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Obsidian/Utilities/Converters/RecipeConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,14 @@ public sealed class RecipesConverter : JsonConverter<IRecipe[]>
});
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<Ingredient>(options)!,
Ingredient = ingredient.Deserialize<Ingredient>(options)!,
Count = ingredient.GetProperty("count").GetInt32(),//TODO the recipe format more or less changed look into this.
Result = result
});
break;
Expand Down

0 comments on commit dcb01db

Please sign in to comment.