fix fuse error in "Battle Skills" tutorial

This commit is contained in:
Robert Paciorek 2023-10-02 19:44:49 +00:00 committed by Spirtix
parent ac281ca4ad
commit a8d1bae4ac

View File

@ -1074,6 +1074,9 @@ public class ContentController : Controller {
invItem.Quantity -= item.Quantity;
}
foreach (var item in req.BluePrintFuseItemMaps) {
if (item.UserInventoryID < 0) {
continue; // TODO: what we should do in this case?
}
InventoryItem? invItem = viking.Inventory.InventoryItems.FirstOrDefault(e => e.Id == item.UserInventoryID);
if (invItem is null)
return Ok(new FuseItemsResponse { Status = Status.ItemNotFound });