From 455848de9d82a69c1ac33779f543a0a4be1bc7b3 Mon Sep 17 00:00:00 2001 From: wrexbe <81056464+wrexbe@users.noreply.github.com> Date: Sun, 12 Jun 2022 17:15:23 -0700 Subject: [PATCH] Prevent door remote zaps (#8803) --- Content.Server/Remotes/DoorRemoteSystem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Server/Remotes/DoorRemoteSystem.cs b/Content.Server/Remotes/DoorRemoteSystem.cs index 821968e8cc..eaa293f990 100644 --- a/Content.Server/Remotes/DoorRemoteSystem.cs +++ b/Content.Server/Remotes/DoorRemoteSystem.cs @@ -24,7 +24,7 @@ namespace Content.Server.Remotes base.Initialize(); SubscribeLocalEvent(OnInHandActivation); - SubscribeLocalEvent(OnAfterInteract); + SubscribeLocalEvent(OnBeforeInteract); } public void OnInHandActivation(EntityUid user, DoorRemoteComponent component, UseInHandEvent args) @@ -46,7 +46,7 @@ namespace Content.Server.Remotes } } - private void OnAfterInteract(EntityUid uid, DoorRemoteComponent component, AfterInteractEvent args) + private void OnBeforeInteract(EntityUid uid, DoorRemoteComponent component, BeforeRangedInteractEvent args) { if (!args.CanReach || args.Handled