forked from SoDOff-Project/sodoff
fix fuse error in "Battle Skills" tutorial
This commit is contained in:
parent
ac281ca4ad
commit
a8d1bae4ac
@ -1074,6 +1074,9 @@ public class ContentController : Controller {
|
|||||||
invItem.Quantity -= item.Quantity;
|
invItem.Quantity -= item.Quantity;
|
||||||
}
|
}
|
||||||
foreach (var item in req.BluePrintFuseItemMaps) {
|
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);
|
InventoryItem? invItem = viking.Inventory.InventoryItems.FirstOrDefault(e => e.Id == item.UserInventoryID);
|
||||||
if (invItem is null)
|
if (invItem is null)
|
||||||
return Ok(new FuseItemsResponse { Status = Status.ItemNotFound });
|
return Ok(new FuseItemsResponse { Status = Status.ItemNotFound });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user