Fix: Skip item when slots property is empty during generation of items pool

This commit is contained in:
Dev 2023-03-26 16:53:51 +01:00
parent 27a0df2d92
commit 9a419e80ef

View File

@ -59,6 +59,12 @@ export class BotEquipmentModPoolService
pool[item._id] = {};
}
// No slots, skip
if (!item._props.Slots)
{
return;
}
for (const slot of item._props.Slots)
{
const itemsThatFit = slot._props.filters[0].Filter;