Skip to content

Commit 82988a8

Browse files
committed
Fix randomised recipes not yielding multiple crafts.
1 parent 9fa1433 commit 82988a8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

SubnauticaRandomiser/Objects/Recipe.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,12 @@ public TechType GetLinkedItem(int index)
8686

8787
public RecipeData ToRecipeData()
8888
{
89-
return new RecipeData(Ingredients.Select(i => i.ToGameIngredient()).ToList());
89+
var data = new RecipeData(Ingredients.Select(i => i.ToGameIngredient()).ToList())
90+
{
91+
craftAmount = CraftAmount,
92+
LinkedItems = LinkedIngredients.ShallowCopy()
93+
};
94+
return data;
9095
}
9196
}
9297
}

0 commit comments

Comments
 (0)