Fix issue with bot gen when bot config has empty equipment blacklist
This commit is contained in:
parent
eb445b2820
commit
dcc12f1fcd
@ -260,7 +260,7 @@ export class BotInventoryGenerator
|
||||
const modPool = this.botEquipmentModPoolService.getModsForGearSlot(itemTpl);
|
||||
for (const modSlot of Object.keys(modPool ?? []))
|
||||
{
|
||||
const blacklistedMods = equipmentBlacklist[0].equipment[modSlot] || [];
|
||||
const blacklistedMods = equipmentBlacklist[0]?.equipment[modSlot] || [];
|
||||
const filteredMods = modPool[modSlot].filter(x => !blacklistedMods.includes(x));
|
||||
|
||||
if (filteredMods.length > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user