From 5a578959989e198537f417e734528eedf8c44b3c Mon Sep 17 00:00:00 2001 From: Dev Date: Fri, 29 Dec 2023 17:13:48 +0000 Subject: [PATCH] Fix server error when adding lootable armor to raid --- project/src/generators/LocationGenerator.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/project/src/generators/LocationGenerator.ts b/project/src/generators/LocationGenerator.ts index 4627d672..c92013c5 100644 --- a/project/src/generators/LocationGenerator.ts +++ b/project/src/generators/LocationGenerator.ts @@ -858,6 +858,10 @@ export class LocationGenerator } else if (this.itemHelper.isOfBaseclasses(chosenTpl, [BaseClasses.VEST, BaseClasses.ARMOR, BaseClasses.HEADWEAR])) { + itemWithMods.push({ + _id: this.objectId.generate(), + _tpl: chosenTpl, + }); if (itemTemplate._props.Slots?.length > 0) { this.addModsToEquipmentItem(itemWithMods, itemTemplate)