Exclude crystals, shards and clusters from generated material list
This commit is contained in:
parent
3a0bb492fa
commit
50b975ae20
@ -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
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user