mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
Stop shift from cancelling follow as ghost (#24715)
Fixed pressing shift cancelling ghost follow
This commit is contained in:
parent
c16e384d3a
commit
b0bd0689ce
1 changed files with 3 additions and 1 deletions
|
|
@ -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,7 +97,8 @@ public sealed class FollowerSystem : EntitySystem
|
|||
|
||||
private void OnFollowerMove(EntityUid uid, FollowerComponent component, ref MoveInputEvent args)
|
||||
{
|
||||
StopFollowingEntity(uid, component.Following);
|
||||
if ((args.Component.HeldMoveButtons & MoveButtons.AnyDirection) != MoveButtons.None)
|
||||
StopFollowingEntity(uid, component.Following);
|
||||
}
|
||||
|
||||
private void OnPullStarted(EntityUid uid, FollowerComponent component, PullStartedMessage args)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue