Stop shift from cancelling follow as ghost (#24715)

Fixed pressing shift cancelling ghost follow
This commit is contained in:
Tayrtahn
2024-01-29 20:33:34 -05:00
committed by GitHub
parent c16e384d3a
commit b0bd0689ce

View File

@@ -4,6 +4,7 @@ using Content.Shared.Follower.Components;
using Content.Shared.Ghost;
using Content.Shared.Hands;
using Content.Shared.Movement.Events;
using Content.Shared.Movement.Systems;
using Content.Shared.Physics.Pull;
using Content.Shared.Tag;
using Content.Shared.Verbs;
@@ -96,6 +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)
StopFollowingEntity(uid, component.Following);
}