Skip to content

Commit

Permalink
Update SharedGunSystem.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepyyapril authored Jan 19, 2025
1 parent 30810e0 commit 90e23c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 90e23c1

Please sign in to comment.