Update FollowerSystem's fix to use new helper property (#24889)

Updated FollowerSystem's fix to use new helper property
This commit is contained in:
Tayrtahn
2024-02-02 22:17:05 -05:00
committed by GitHub
parent 3630956526
commit 79e3a6630d

View File

@@ -97,7 +97,7 @@ public sealed class FollowerSystem : EntitySystem
private void OnFollowerMove(EntityUid uid, FollowerComponent component, ref MoveInputEvent args) 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); StopFollowingEntity(uid, component.Following);
} }