]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Revert "Fix: Break do_after if target/tool becomes inaccessible" (#39617)
authorMyra <vasilis@pikachu.systems>
Wed, 13 Aug 2025 20:07:46 +0000 (22:07 +0200)
committerGitHub <noreply@github.com>
Wed, 13 Aug 2025 20:07:46 +0000 (22:07 +0200)
Content.Shared/DoAfter/SharedDoAfterSystem.Update.cs

index 97ff74f64acc2d978d8f34a4e65f0221ca77fae4..31ff0348091ff2d4d7e519f3a452f1a452a85a1a 100644 (file)
@@ -184,22 +184,22 @@ public abstract partial class SharedDoAfterSystem : EntitySystem
             }
         }
 
-        // Whether the user and the target are too far apart or they are inaccessible.
+        // Whether the user and the target are too far apart.
         if (args.Target != null)
         {
             if (args.DistanceThreshold != null)
             {
-                if (!_interaction.InRangeAndAccessible(args.User, args.Target.Value, args.DistanceThreshold.Value))
+                if (!_interaction.InRangeUnobstructed(args.User, args.Target.Value, args.DistanceThreshold.Value))
                     return true;
             }
         }
 
-        // Whether the distance between the tool and the user has grown too much or they became inaccessible.
+        // Whether the distance between the tool and the user has grown too much.
         if (args.Used != null)
         {
             if (args.DistanceThreshold != null)
             {
-                if (!_interaction.InRangeAndAccessible(args.User,
+                if (!_interaction.InRangeUnobstructed(args.User,
                         args.Used.Value,
                         args.DistanceThreshold.Value))
                     return true;