Fixes the projectile list in AmmoShotEvent when firing something with a ProjectileSpreadComponent (#31300)

Fixed multiple projectile addition.
This commit is contained in:
Sigil 2024-08-23 00:05:56 +07:00 committed by GitHub
parent 6553fd3d6e
commit 4a54bb7c1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -292,7 +292,7 @@ public sealed partial class GunSystem : SharedGunSystem
{
var newuid = Spawn(ammoSpreadComp.Proto, fromEnt);
ShootOrThrow(newuid, angles[i].ToVec(), gunVelocity, gun, gunUid, user);
shotProjectiles.Add(ammoEnt);
shotProjectiles.Add(newuid);
}
}
else