Fix incorrect || that should have been an &&

This commit is contained in:
Dev 2024-02-21 23:51:11 +00:00
parent 926dcd2213
commit 201a171cd1

View File

@ -69,7 +69,7 @@ namespace Generator
foreach (var rawBot in rawBotsOfSameType)
{
// Filter out base inventory items and equipment mod items
var rawBotItems = rawBot.Inventory.items.Where(x => x.parentId != null || x.location != null).ToList();
var rawBotItems = rawBot.Inventory.items.Where(x => x.parentId != null && x.location != null).ToList();
var botBackpack = rawBotItems.FirstOrDefault(item => item.slotId == "Backpack");
if (botBackpack != null)