From: Sigil <84070966+Siigiil@users.noreply.github.com> Date: Thu, 22 Aug 2024 17:05:56 +0000 (+0700) Subject: Fixes the projectile list in AmmoShotEvent when firing something with a ProjectileSpr... X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=4a54bb7c1df562e1c24dcce69d91a99b4e264ad8;p=space-station-14.git Fixes the projectile list in AmmoShotEvent when firing something with a ProjectileSpreadComponent (#31300) Fixed multiple projectile addition. --- diff --git a/Content.Server/Weapons/Ranged/Systems/GunSystem.cs b/Content.Server/Weapons/Ranged/Systems/GunSystem.cs index 3a5fa4540a..701753a8ce 100644 --- a/Content.Server/Weapons/Ranged/Systems/GunSystem.cs +++ b/Content.Server/Weapons/Ranged/Systems/GunSystem.cs @@ -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