FIx weapons/armors not showing on fence

This commit is contained in:
Dev 2024-02-05 18:21:02 +00:00
parent f429cbd663
commit ce27f58664

View File

@ -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