From 1de18f28210af4aa65e13951485927ca4fb894c5 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Fri, 4 Feb 2022 12:43:58 +1100 Subject: [PATCH] Flashable cangetstate ref (#6441) --- Content.Shared/Flash/SharedFlashSystem.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); }