Made use of AddUpd extension

This commit is contained in:
Chomp
2025-08-05 15:56:23 +01:00
parent c7e40deb90
commit 3b4bcaf910
10 changed files with 33 additions and 23 deletions
@@ -159,7 +159,7 @@ public class InventoryHelper(
foreach (var item in itemWithChildren)
{
// Ensure item has upd object
itemHelper.AddUpdObjectToItem(item);
item.AddUpd();
// Ammo / currency can NEVER be FiR or have a 'SpawnedInSession' property
item.Upd.SpawnedInSession = itemHelper.IsOfBaseclass(item.Template, BaseClasses.AMMO) ? null : foundInRaid;