0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 08:30:44 -05:00

Fixed itemAllowedInContainer() failing when filter object is null

This commit is contained in:
Dev 2024-04-14 19:33:44 +01:00
parent d31eedf92b
commit ad54e7ae98

View File

@ -700,7 +700,7 @@ export class BotGeneratorHelper
}
// If allowed filter has something in it + filter doesnt have basetype 'item', not allowed
if (filter.length > 0 && !filter.includes(itemDetails._parent))
if (filter?.length > 0 && !filter.includes(itemDetails._parent))
{
return false;
}