Part 2 of list to ienumerable

This commit is contained in:
Chomp
2025-07-23 15:55:28 +01:00
parent 0faa65a560
commit a1e0dadd08
29 changed files with 166 additions and 162 deletions
@@ -183,7 +183,7 @@ public class InventoryController(
{
// The client sends the full list of favorite items, so clear the current favorites
pmcData.Inventory.FavoriteItems = [];
pmcData.Inventory.FavoriteItems.AddRange(request.Items);
pmcData.Inventory.FavoriteItems = pmcData.Inventory.FavoriteItems.Union(request.Items);
}
/// <summary>