]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Update FollowerSystem's fix to use new helper property (#24889)
authorTayrtahn <tayrtahn@gmail.com>
Sat, 3 Feb 2024 03:17:05 +0000 (22:17 -0500)
committerGitHub <noreply@github.com>
Sat, 3 Feb 2024 03:17:05 +0000 (14:17 +1100)
Updated FollowerSystem's fix to use new helper property

Content.Shared/Follower/FollowerSystem.cs

index 672f3d6487c020d2465ae2e7956990e0d06bd338..5656778a3f9448aefec13fbfe604fa971a285b08 100644 (file)
@@ -97,7 +97,7 @@ public sealed class FollowerSystem : EntitySystem
 
     private void OnFollowerMove(EntityUid uid, FollowerComponent component, ref MoveInputEvent args)
     {
-        if ((args.Component.HeldMoveButtons & MoveButtons.AnyDirection) != MoveButtons.None)
+        if (args.HasDirectionalMovement)
             StopFollowingEntity(uid, component.Following);
     }