From aff034e385937fae3213c41f1d2a368f5748e789 Mon Sep 17 00:00:00 2001 From: sleepyyapril <123355664+sleepyyapril@users.noreply.github.com> Date: Sun, 19 Jan 2025 15:55:54 -0400 Subject: [PATCH] Update Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.cs Co-authored-by: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> --- Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.cs b/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.cs index c469e194cf21..35a15178d876 100644 --- a/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.cs +++ b/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.cs @@ -508,8 +508,7 @@ protected void MuzzleFlash(EntityUid gun, AmmoComponent component, Angle worldAn return; var ev = new MuzzleFlashEvent(GetNetEntity(gun), sprite, worldAngle); - var sending = _netManager.IsServer && user != null ? user : gun; - CreateEffect(gun, ev, sending); + CreateEffect(gun, ev, user); } public void CauseImpulse(EntityCoordinates fromCoordinates, EntityCoordinates toCoordinates, EntityUid user, PhysicsComponent userPhysics)