Make raiselocalevent not broadcast by default (#8998)
This commit is contained in:
@@ -71,7 +71,7 @@ namespace Content.Server.Light.EntitySystems
|
||||
if (component.State == state) return;
|
||||
|
||||
component.State = state;
|
||||
RaiseLocalEvent(component.Owner, new EmergencyLightEvent(component, state));
|
||||
RaiseLocalEvent(component.Owner, new EmergencyLightEvent(component, state), true);
|
||||
}
|
||||
|
||||
public override void Update(float frameTime)
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace Content.Server.Light.EntitySystems
|
||||
|
||||
SoundSystem.Play(flashlight.ToggleSound.GetSound(), Filter.Pvs(light.Owner), flashlight.Owner);
|
||||
|
||||
RaiseLocalEvent(flashlight.Owner, new LightToggleEvent(flashlight.LightOn));
|
||||
RaiseLocalEvent(flashlight.Owner, new LightToggleEvent(flashlight.LightOn), true);
|
||||
_actionsSystem.SetToggled(flashlight.ToggleAction, flashlight.LightOn);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user