Raise power events by ref and not broadcast (#11923)
Also some other minor stuff.
This commit is contained in:
@@ -86,7 +86,7 @@ public sealed class SurveillanceCameraRouterSystem : EntitySystem
|
||||
}
|
||||
}
|
||||
|
||||
private void OnPowerChanged(EntityUid uid, SurveillanceCameraRouterComponent component, PowerChangedEvent args)
|
||||
private void OnPowerChanged(EntityUid uid, SurveillanceCameraRouterComponent component, ref PowerChangedEvent args)
|
||||
{
|
||||
component.MonitorRoutes.Clear();
|
||||
component.Active = args.Powered;
|
||||
|
||||
Reference in New Issue
Block a user