Fix incorrect || that should have been an &&
This commit is contained in:
parent
926dcd2213
commit
201a171cd1
@ -69,7 +69,7 @@ namespace Generator
|
|||||||
foreach (var rawBot in rawBotsOfSameType)
|
foreach (var rawBot in rawBotsOfSameType)
|
||||||
{
|
{
|
||||||
// Filter out base inventory items and equipment mod items
|
// 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");
|
var botBackpack = rawBotItems.FirstOrDefault(item => item.slotId == "Backpack");
|
||||||
if (botBackpack != null)
|
if (botBackpack != null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user