diff --git a/Libraries/Core/Controllers/InsuranceController.cs b/Libraries/Core/Controllers/InsuranceController.cs index a8eb57df..51523d3e 100644 --- a/Libraries/Core/Controllers/InsuranceController.cs +++ b/Libraries/Core/Controllers/InsuranceController.cs @@ -173,7 +173,7 @@ public class InsuranceController( * @param insured - The insurance object containing the items to evaluate for deletion. * @returns A Set containing the IDs of items that should be deleted. */ - private object FindItemsToDelete(string rootItemParentID, Insurance insured) + private HashSet FindItemsToDelete(string rootItemParentID, Insurance insured) { var toDelete = new HashSet(); @@ -433,7 +433,7 @@ public class InsuranceController( _logger.Debug($"Processing attachments of parent {parentName}"); // Process the attachments for this individual parent item. - ProcessAttachmentByParent(mainParentToAttachmentsMap.Values, insuredTraderId, toDelete); + ProcessAttachmentByParent(parentObj.Value, insuredTraderId, toDelete); } } diff --git a/Libraries/Core/Generators/PMCLootGenerator.cs b/Libraries/Core/Generators/PMCLootGenerator.cs index fef27bc0..1f163be3 100644 --- a/Libraries/Core/Generators/PMCLootGenerator.cs +++ b/Libraries/Core/Generators/PMCLootGenerator.cs @@ -88,7 +88,7 @@ public class PMCLootGenerator { // Set price of item as its weight var price = _ragfairPriceService.GetDynamicItemPrice(tpl, Money.ROUBLES); - _pocketLootPool[tpl] = price; + _pocketLootPool[tpl] = price ?? 0; } } @@ -167,7 +167,7 @@ public class PMCLootGenerator { // Set price of item as its weight var price = _ragfairPriceService.GetDynamicItemPrice(tpl, Money.ROUBLES); - _vestLootPool[tpl] = price; + _vestLootPool[tpl] = price ?? 0; } } @@ -247,7 +247,7 @@ public class PMCLootGenerator { // Set price of item as its weight var price = _ragfairPriceService.GetDynamicItemPrice(tpl, Money.ROUBLES); - _backpackLootPool[tpl] = price; + _backpackLootPool[tpl] = price ?? 0; } }