Fix Ammo Visuals Bug (#41362)

Fix Ammo Count Updating
This commit is contained in:
Sir Warock
2025-11-09 08:42:55 +01:00
committed by GitHub
parent 4ca3b905c7
commit 5ec141b955

View File

@@ -154,8 +154,6 @@ 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;