From 92453cca828f356c697a7da047494904665f32d0 Mon Sep 17 00:00:00 2001 From: CWX Date: Thu, 23 Jan 2025 16:23:39 +0000 Subject: [PATCH] fix build issues --- Libraries/Core/Controllers/InsuranceController.cs | 4 ++-- Libraries/Core/Generators/PMCLootGenerator.cs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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; } }