Add missing param

This commit is contained in:
Dev 2023-12-28 00:07:41 +00:00
parent 06c60b9fd9
commit 31198120a1

View File

@ -139,7 +139,7 @@ export class BotEquipmentModGenerator
}
const modTemplate = this.itemHelper.getItem(modTpl);
if (!this.isModValidForSlot(modTemplate, itemSlot, modSlot, parentTemplate))
if (!this.isModValidForSlot(modTemplate, itemSlot, modSlot, parentTemplate, botRole))
{
continue;
}
@ -846,6 +846,7 @@ export class BotEquipmentModGenerator
modId: modToAdd[1]._id,
modSlot: modSlot,
parentName: parentTemplate._name,
botRole: botRole
}),
);