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 deltanedas
parent 39e83ddbb5
commit 7b30347b20
1 changed files with 1 additions and 1 deletions

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