From ce27f58664ff949a92664d1462dfe9c9a4617730 Mon Sep 17 00:00:00 2001 From: Dev Date: Mon, 5 Feb 2024 18:21:02 +0000 Subject: [PATCH] FIx weapons/armors not showing on fence --- project/src/services/FenceService.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/project/src/services/FenceService.ts b/project/src/services/FenceService.ts index d057fe19..b862e4e8 100644 --- a/project/src/services/FenceService.ts +++ b/project/src/services/FenceService.ts @@ -543,6 +543,9 @@ export class FenceService this.itemHelper.reparentItemAndChildren(presetWithChildrenClone[0], presetWithChildrenClone); this.itemHelper.remapRootItemId(presetWithChildrenClone); + // Remapping IDs causes parentid to be altered + presetWithChildrenClone[0].parentId = "hideout"; + assorts.items.push(...presetWithChildrenClone); // Must be careful to use correct id as the item has had its IDs regenerated