mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-04 05:17:28 +00:00
Added a range check for pager linking (#6032)
This commit is contained in:
@@ -42,6 +42,9 @@ public sealed class PagerSystem : EntitySystem
|
||||
|
||||
private void OnAfterInteract(Entity<PagerComponent> ent, ref AfterInteractEvent args)
|
||||
{
|
||||
if (!args.CanReach)
|
||||
return;
|
||||
|
||||
if (args.Handled || !TryComp<DeviceNetworkComponent>(args.Target, out var targetNetwork) || !HasComp<PageSenderComponent>(args.Target))
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user