Exclude crystals, shards and clusters from generated material list

This commit is contained in:
Liza 2024-07-28 22:07:24 +02:00
parent 3a0bb492fa
commit 50b975ae20
Signed by: liza
GPG Key ID: 7199F8D727D55F67
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -1,6 +1,6 @@
<Project Sdk="Dalamud.NET.Sdk/9.0.2">
<PropertyGroup>
<Version>6.1</Version>
<Version>6.2</Version>
<OutputPath>dist</OutputPath>
</PropertyGroup>