Fix fence generating items with same IDs causing Fence Trader to break client

This commit is contained in:
Kaeno 2024-02-01 21:02:39 +00:00
parent 5b04bc530e
commit e0b5d43fd5

View File

@ -528,8 +528,8 @@ export class FenceService
this.removeRandomModsOfItem(presetWithChildrenClone);
// MUST randomise Ids as its possible to add the same base fence assort twice = duplicate IDs = dead client
this.itemHelper.reparentItemAndChildren(presetWithChildrenClone[0], presetWithChildrenClone);
this.itemHelper.remapRootItemId(presetWithChildrenClone);
this.itemHelper.replaceIDs(null, presetWithChildrenClone);
assorts.items.push(...presetWithChildrenClone);