Raise power events by ref and not broadcast (#11923)
Also some other minor stuff.
This commit is contained in:
@@ -143,7 +143,7 @@ public sealed class SurveillanceCameraSystem : EntitySystem
|
||||
|
||||
|
||||
|
||||
private void OnPowerChanged(EntityUid camera, SurveillanceCameraComponent component, PowerChangedEvent args)
|
||||
private void OnPowerChanged(EntityUid camera, SurveillanceCameraComponent component, ref PowerChangedEvent args)
|
||||
{
|
||||
SetActive(camera, args.Powered, component);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user