Fixed issue with GenerateExtraPropertiesForItem not returning Upd object

This commit is contained in:
Chomp
2025-09-14 16:39:47 +01:00
parent 7bbb76d755
commit 45237693f8
2 changed files with 2 additions and 2 deletions
@@ -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>