Fix server error when adding lootable armor to raid

This commit is contained in:
Dev 2023-12-29 17:13:48 +00:00
parent ac002fb548
commit 5a57895998

View File

@ -858,6 +858,10 @@ export class LocationGenerator
} }
else if (this.itemHelper.isOfBaseclasses(chosenTpl, [BaseClasses.VEST, BaseClasses.ARMOR, BaseClasses.HEADWEAR])) 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) if (itemTemplate._props.Slots?.length > 0)
{ {
this.addModsToEquipmentItem(itemWithMods, itemTemplate) this.addModsToEquipmentItem(itemWithMods, itemTemplate)