From d5c2a5f29ad23896167cea39353e40be90bac77d Mon Sep 17 00:00:00 2001 From: Chomp Date: Thu, 16 Jan 2025 12:13:00 +0000 Subject: [PATCH] Improved `CheckForOrphanedModdedItems` logic --- Core/Services/ProfileFixerService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Services/ProfileFixerService.cs b/Core/Services/ProfileFixerService.cs index b1af922b..855ce730 100644 --- a/Core/Services/ProfileFixerService.cs +++ b/Core/Services/ProfileFixerService.cs @@ -491,7 +491,7 @@ public class ProfileFixerService // Check each item in inventory to ensure item exists in itemdb foreach (var item in inventoryItemsToCheck) { - if (itemsDb[item.Template] is not null) + if (!itemsDb.ContainsKey(item.Template)) { _logger.Error(_localisationService.GetText("fixer-mod_item_found", item.Template));