Stop shift from cancelling follow as ghost (#24715)
Fixed pressing shift cancelling ghost follow
This commit is contained in:
@@ -4,6 +4,7 @@ using Content.Shared.Follower.Components;
|
|||||||
using Content.Shared.Ghost;
|
using Content.Shared.Ghost;
|
||||||
using Content.Shared.Hands;
|
using Content.Shared.Hands;
|
||||||
using Content.Shared.Movement.Events;
|
using Content.Shared.Movement.Events;
|
||||||
|
using Content.Shared.Movement.Systems;
|
||||||
using Content.Shared.Physics.Pull;
|
using Content.Shared.Physics.Pull;
|
||||||
using Content.Shared.Tag;
|
using Content.Shared.Tag;
|
||||||
using Content.Shared.Verbs;
|
using Content.Shared.Verbs;
|
||||||
@@ -96,6 +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)
|
||||||
StopFollowingEntity(uid, component.Following);
|
StopFollowingEntity(uid, component.Following);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user