Fixed issue with GenerateExtraPropertiesForItem not returning Upd object
This commit is contained in:
@@ -557,7 +557,7 @@ public class BotLootGenerator(
|
||||
inventoryToAddItemsTo
|
||||
);
|
||||
|
||||
// Handle when item cannot be added
|
||||
// Handle when fitting item fails
|
||||
if (itemAddedResult != ItemAddedResult.SUCCESS)
|
||||
{
|
||||
if (itemAddedResult == ItemAddedResult.NO_CONTAINERS)
|
||||
|
||||
@@ -167,7 +167,7 @@ public class BotGeneratorHelper(
|
||||
}
|
||||
|
||||
// Some items (weapon mods) may not have any props, and we don't want an empty Upd object
|
||||
return hasProperties ? itemUpd : null;
|
||||
return hasProperties || forceStackObjectsCount ? itemUpd : null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user