Fixes the projectile list in AmmoShotEvent when firing something with a ProjectileSpreadComponent (#31300)
Fixed multiple projectile addition.
This commit is contained in:
parent
6553fd3d6e
commit
4a54bb7c1d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue