Skip to content

Commit

Permalink
Update Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com>
  • Loading branch information
sleepyyapril and ElectroJr authored Jan 19, 2025
1 parent 36166b1 commit aff034e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit aff034e

Please sign in to comment.