fix build issues

This commit is contained in:
CWX
2025-01-23 16:23:39 +00:00
parent 7f1d1397bc
commit 92453cca82
2 changed files with 5 additions and 5 deletions
@@ -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<string> FindItemsToDelete(string rootItemParentID, Insurance insured)
{
var toDelete = new HashSet<string>();
@@ -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);
}
}
@@ -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;
}
}