Fix Shotgun ammocount not updating (#40568)
This commit is contained in:
parent
17f418da46
commit
6a79e627e0
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue