]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix QSI Link Range (#30332)
authorCojoke <83733158+Cojoke-dot@users.noreply.github.com>
Wed, 24 Jul 2024 20:57:45 +0000 (15:57 -0500)
committerGitHub <noreply@github.com>
Wed, 24 Jul 2024 20:57:45 +0000 (13:57 -0700)
Content.Shared/Teleportation/Systems/SwapTeleporterSystem.cs

index 15807794c38e96b52936701914aba5f3124f0a8a..3852f260f7234871365042a39ca43b1633daef96 100644 (file)
@@ -45,7 +45,7 @@ public sealed class SwapTeleporterSystem : EntitySystem
     private void OnInteract(Entity<SwapTeleporterComponent> ent, ref AfterInteractEvent args)
     {
         var (uid, comp) = ent;
-        if (args.Target == null)
+        if (args.Target == null || !args.CanReach)
             return;
 
         var target = args.Target.Value;