From d2e80d7b5d01f06fbe0b488b89b588a3835132bb Mon Sep 17 00:00:00 2001 From: Chomp Date: Fri, 30 May 2025 09:24:43 +0100 Subject: [PATCH] Updated `GetItemRewardPool` to ignore items from the db without a parent id when gathering blacklist --- Libraries/SPTarkov.Server.Core/Generators/LootGenerator.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Libraries/SPTarkov.Server.Core/Generators/LootGenerator.cs b/Libraries/SPTarkov.Server.Core/Generators/LootGenerator.cs index dd0dbfed..a06a956b 100644 --- a/Libraries/SPTarkov.Server.Core/Generators/LootGenerator.cs +++ b/Libraries/SPTarkov.Server.Core/Generators/LootGenerator.cs @@ -232,6 +232,7 @@ public class LootGenerator( // Get all items that match the blacklisted types and fold into item blacklist var itemTypeBlacklist = _itemFilterService.GetItemRewardBaseTypeBlacklist(); var itemsMatchingTypeBlacklist = itemsDb + .Where(templateItem => !string.IsNullOrEmpty(templateItem.Parent)) // Ignore items without parents .Where(templateItem => _itemHelper.IsOfBaseclasses(templateItem.Parent, itemTypeBlacklist)) .Select(templateItem => templateItem.Id);