]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fixes the projectile list in AmmoShotEvent when firing something with a ProjectileSpr...
authorSigil <84070966+Siigiil@users.noreply.github.com>
Thu, 22 Aug 2024 17:05:56 +0000 (00:05 +0700)
committerGitHub <noreply@github.com>
Thu, 22 Aug 2024 17:05:56 +0000 (13:05 -0400)
Fixed multiple projectile addition.

Content.Server/Weapons/Ranged/Systems/GunSystem.cs

index 3a5fa4540afe73d80d35a56ad0808ae1c74359c3..701753a8ce235dfebae3223b6bcb8b0c4210730f 100644 (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