Fix fence generating items with same IDs causing Fence Trader to break client
This commit is contained in:
parent
5b04bc530e
commit
e0b5d43fd5
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user