From 90e23c1f1d2b53325617f4ed8beb0c77d9461ba8 Mon Sep 17 00:00:00 2001 From: sleepyyapril <123355664+sleepyyapril@users.noreply.github.com> Date: Sun, 19 Jan 2025 01:26:37 -0400 Subject: [PATCH] Update SharedGunSystem.cs --- Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.cs b/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.cs index 4b31df6862ac..d7f1148a40fc 100644 --- a/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.cs +++ b/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.cs @@ -510,7 +510,8 @@ protected void MuzzleFlash(EntityUid gun, AmmoComponent component, Angle worldAn var gunNetEntity = GetNetEntity(gun); var userNetEntity = user != null ? GetNetEntity(user) : gunNetEntity; var ev = new MuzzleFlashEvent(gunNetEntity, sprite, worldAngle, userNetEntity); - CreateEffect(gun, ev, user ?? gun); + var sending = _netManager.IsClient ? gun : user; + CreateEffect(gun, ev, sending); } public void CauseImpulse(EntityCoordinates fromCoordinates, EntityCoordinates toCoordinates, EntityUid user, PhysicsComponent userPhysics)