From: Tayrtahn Date: Sat, 3 Feb 2024 03:17:05 +0000 (-0500) Subject: Update FollowerSystem's fix to use new helper property (#24889) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=79e3a6630d94a7409500b5856fd2a1518533a3d9;p=space-station-14.git Update FollowerSystem's fix to use new helper property (#24889) Updated FollowerSystem's fix to use new helper property --- diff --git a/Content.Shared/Follower/FollowerSystem.cs b/Content.Shared/Follower/FollowerSystem.cs index 672f3d6487..5656778a3f 100644 --- a/Content.Shared/Follower/FollowerSystem.cs +++ b/Content.Shared/Follower/FollowerSystem.cs @@ -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); }