From bb50998e04752cbb99247ab8554c2082fa14173c Mon Sep 17 00:00:00 2001 From: Kaeno Date: Tue, 9 Jul 2024 09:52:58 +0100 Subject: [PATCH] Skip moving item if item cannot be found. --- project/src/helpers/InventoryHelper.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/project/src/helpers/InventoryHelper.ts b/project/src/helpers/InventoryHelper.ts index 7d799b13..4d25b303 100644 --- a/project/src/helpers/InventoryHelper.ts +++ b/project/src/helpers/InventoryHelper.ts @@ -1073,6 +1073,7 @@ export class InventoryHelper if (!itemToMove) { this.logger.error(this.localisationService.getText("inventory-unable_to_find_item_to_move", itemId)); + continue; } // Only adjust the values for parent item, not children (their values are already correctly tied to parent)