diff --git a/project/src/generators/LootGenerator.ts b/project/src/generators/LootGenerator.ts index b514618a..ed7ba4da 100644 --- a/project/src/generators/LootGenerator.ts +++ b/project/src/generators/LootGenerator.ts @@ -516,7 +516,7 @@ export class LootGenerator { // Get items that fulfil reward type criteria from items that fit on gun const relatedItems = linkedItemsToWeapon?.filter( - (item) => item._parent === rewardTypeId && !this.itemFilterService.isItemBlacklisted(item._id), + (item) => item?._parent === rewardTypeId && !this.itemFilterService.isItemBlacklisted(item._id), ); if (!relatedItems || relatedItems.length === 0) { this.logger.debug(