Fix pressing shift while held triggering escape (#24878)

* We meet again, my old friend.

* Helper property
This commit is contained in:
Tayrtahn
2024-02-02 21:14:20 -05:00
committed by GitHub
parent f0dddd48ad
commit 31207006f5
2 changed files with 6 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ using Content.Shared.Hands.EntitySystems;
using Content.Shared.Interaction.Events;
using Content.Shared.Inventory;
using Content.Shared.Movement.Events;
using Content.Shared.Movement.Systems;
using Content.Shared.Resist;
using Content.Shared.Storage;
using Robust.Shared.Containers;
@@ -38,6 +39,9 @@ public sealed class EscapeInventorySystem : EntitySystem
private void OnRelayMovement(EntityUid uid, CanEscapeInventoryComponent component, ref MoveInputEvent args)
{
if (!args.HasDirectionalMovement)
return;
if (!_containerSystem.TryGetContainingContainer(uid, out var container) || !_actionBlockerSystem.CanInteract(uid, container.Owner))
return;