From cfa24eb20ce9d30f869fb2cbb60fc01f4cddf60d Mon Sep 17 00:00:00 2001 From: Carol <292806487+CarolCuchara@users.noreply.github.com> Date: Sun, 14 Jun 2026 20:30:34 +0200 Subject: [PATCH] Added a range check for pager linking (#6032) --- Content.Shared/_DV/Pager/PagerSystem.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Content.Shared/_DV/Pager/PagerSystem.cs b/Content.Shared/_DV/Pager/PagerSystem.cs index 34f217e0d76..a9ba4125cd8 100644 --- a/Content.Shared/_DV/Pager/PagerSystem.cs +++ b/Content.Shared/_DV/Pager/PagerSystem.cs @@ -42,6 +42,9 @@ public sealed class PagerSystem : EntitySystem private void OnAfterInteract(Entity ent, ref AfterInteractEvent args) { + if (!args.CanReach) + return; + if (args.Handled || !TryComp(args.Target, out var targetNetwork) || !HasComp(args.Target)) return;