From 4a54bb7c1df562e1c24dcce69d91a99b4e264ad8 Mon Sep 17 00:00:00 2001 From: Sigil <84070966+Siigiil@users.noreply.github.com> Date: Fri, 23 Aug 2024 00:05:56 +0700 Subject: [PATCH] Fixes the projectile list in AmmoShotEvent when firing something with a ProjectileSpreadComponent (#31300) Fixed multiple projectile addition. --- Content.Server/Weapons/Ranged/Systems/GunSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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