Converted more strings to mongoIds and fixed issue with buying items from pmcs on flea

This commit is contained in:
Chomp
2025-07-07 11:56:19 +01:00
parent 7ccb388030
commit 61f62f191d
18 changed files with 47 additions and 46 deletions
@@ -39,6 +39,7 @@ public class InventoryHelper(
BaseClasses.FUNCTIONAL_MOD,
BaseClasses.MOD,
];
protected readonly InventoryConfig _inventoryConfig = configServer.GetConfig<InventoryConfig>();
/// <summary>
@@ -213,7 +214,7 @@ public class InventoryHelper(
/// <param name="sessionId">Player id</param>
/// <param name="itemsWithChildren">Array of items with children to try and fit</param>
/// <returns>True all items fit</returns>
public bool CanPlaceItemsInInventory(string sessionId, List<List<Item>> itemsWithChildren)
public bool CanPlaceItemsInInventory(MongoId sessionId, List<List<Item>> itemsWithChildren)
{
var pmcData = profileHelper.GetPmcProfile(sessionId);