diff --git a/Workshoppa/GameData/RecipeTree.cs b/Workshoppa/GameData/RecipeTree.cs index 2107a2b..20bbfca 100644 --- a/Workshoppa/GameData/RecipeTree.cs +++ b/Workshoppa/GameData/RecipeTree.cs @@ -126,7 +126,7 @@ internal sealed class RecipeTree continue; Item? item = ingredient.Value; - if (item == null) + if (item == null || !IsValidItem(item.RowId)) continue; Recipe? ingredientRecipe = GetFirstRecipeForItem(ingredient.Row); @@ -194,9 +194,9 @@ internal sealed class RecipeTree .FirstOrDefault(x => x.RowId > 0 && x.Item.Row == itemId); } - public bool IsValidItem(uint itemId) + private static bool IsValidItem(uint itemId) { - return itemId != 0 && itemId != uint.MaxValue; + return itemId > 19 && itemId != uint.MaxValue; } private sealed class RecipeInfo : Ingredient diff --git a/Workshoppa/Workshoppa.csproj b/Workshoppa/Workshoppa.csproj index 6d8e7d2..87e0cd8 100644 --- a/Workshoppa/Workshoppa.csproj +++ b/Workshoppa/Workshoppa.csproj @@ -1,6 +1,6 @@ - 6.1 + 6.2 dist