diff --git a/Content.Shared/Flash/SharedFlashSystem.cs b/Content.Shared/Flash/SharedFlashSystem.cs index ad107690d9..984dc0414f 100644 --- a/Content.Shared/Flash/SharedFlashSystem.cs +++ b/Content.Shared/Flash/SharedFlashSystem.cs @@ -13,14 +13,14 @@ namespace Content.Shared.Flash SubscribeLocalEvent(OnGetStateAttempt); } - private void OnGetStateAttempt(EntityUid uid, SharedFlashableComponent component, ComponentGetStateAttemptEvent args) + private static void OnGetStateAttempt(EntityUid uid, SharedFlashableComponent component, ref ComponentGetStateAttemptEvent args) { // Only send state to the player attached to the entity. if (args.Player.AttachedEntity != uid) - args.Cancel(); + args.Cancelled = true; } - private void OnFlashableGetState(EntityUid uid, SharedFlashableComponent component, ref ComponentGetState args) + private static void OnFlashableGetState(EntityUid uid, SharedFlashableComponent component, ref ComponentGetState args) { args.State = new FlashableComponentState(component.Duration, component.LastFlash); }