Fix muzzle flash tracking (#30163)

* Fix muzzle flash tracking

User was never set on the networked event but we don't really need it anyway.

* Also this one
This commit is contained in:
metalgearsloth
2024-07-21 16:09:16 +10:00
committed by GitHub
parent 6bbbba5702
commit b4ec629b9f
2 changed files with 8 additions and 6 deletions

View File

@@ -476,7 +476,7 @@ public abstract partial class SharedGunSystem : EntitySystem
return;
var ev = new MuzzleFlashEvent(GetNetEntity(gun), sprite, worldAngle);
CreateEffect(gun, ev, user);
CreateEffect(gun, ev, gun);
}
public void CauseImpulse(EntityCoordinates fromCoordinates, EntityCoordinates toCoordinates, EntityUid user, PhysicsComponent userPhysics)