forked from liza/Workshoppa
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;
|
continue;
|
||||||
|
|
||||||
Item? item = ingredient.Value;
|
Item? item = ingredient.Value;
|
||||||
if (item == null)
|
if (item == null || !IsValidItem(item.RowId))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
Recipe? ingredientRecipe = GetFirstRecipeForItem(ingredient.Row);
|
Recipe? ingredientRecipe = GetFirstRecipeForItem(ingredient.Row);
|
||||||
@ -194,9 +194,9 @@ internal sealed class RecipeTree
|
|||||||
.FirstOrDefault(x => x.RowId > 0 && x.Item.Row == itemId);
|
.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
|
private sealed class RecipeInfo : Ingredient
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<Project Sdk="Dalamud.NET.Sdk/9.0.2">
|
<Project Sdk="Dalamud.NET.Sdk/9.0.2">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Version>6.1</Version>
|
<Version>6.2</Version>
|
||||||
<OutputPath>dist</OutputPath>
|
<OutputPath>dist</OutputPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user