forked from SoDOff-Project/sodoff
bugfix: fuse item from inventory blueprint
This commit is contained in:
parent
c6ad11b5d7
commit
70a28f4d1b
@ -963,7 +963,13 @@ public class ContentController : Controller {
|
||||
|
||||
ItemData blueprintItem;
|
||||
try {
|
||||
blueprintItem = itemService.GetItem(req.BluePrintItemID ?? -1);
|
||||
if (req.BluePrintInventoryID != null) {
|
||||
blueprintItem = itemService.GetItem(
|
||||
viking.Inventory.InventoryItems.FirstOrDefault(e => e.Id == req.BluePrintInventoryID).ItemId
|
||||
);
|
||||
} else {
|
||||
blueprintItem = itemService.GetItem(req.BluePrintItemID ?? -1);
|
||||
}
|
||||
} catch(System.Collections.Generic.KeyNotFoundException) {
|
||||
return Ok(new FuseItemsResponse { Status = Status.BluePrintItemNotFound });
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user