Fix Shotgun ammocount not updating (#40568)

This commit is contained in:
Sir Warock 2025-09-29 12:28:28 +02:00 committed by Vanessa
parent 17f418da46
commit 6a79e627e0
1 changed files with 2 additions and 0 deletions

View File

@ -154,6 +154,8 @@ public abstract partial class SharedGunSystem
Del(ent.Value);
}
UpdateBallisticAppearance(args.Target.Value, component);
UpdateAmmoCount(args.Target.Value);
// repeat if there is more space in the target and more ammo to fill
var moreSpace = target.Entities.Count + target.UnspawnedCount < target.Capacity;
var moreAmmo = component.Entities.Count + component.UnspawnedCount > 0;