[Hotfix] Remove pull-escape trick (#40368)
* make HandleStopPull byref * we get signal
This commit is contained in:
@@ -242,13 +242,18 @@ namespace Content.Shared.Cuffs
|
||||
args.Cancel();
|
||||
}
|
||||
|
||||
private void HandleStopPull(EntityUid uid, CuffableComponent component, AttemptStopPullingEvent args)
|
||||
private void HandleStopPull(EntityUid uid, CuffableComponent component, ref AttemptStopPullingEvent args)
|
||||
{
|
||||
if (args.User == null || !Exists(args.User.Value))
|
||||
return;
|
||||
|
||||
if (args.User.Value == uid && !component.CanStillInteract)
|
||||
{
|
||||
//TODO: UX feedback. Simply blocking the normal interaction feels like an interface bug
|
||||
|
||||
args.Cancelled = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void OnRemoveCuffsAlert(Entity<CuffableComponent> ent, ref RemoveCuffsAlertEvent args)
|
||||
|
||||
Reference in New Issue
Block a user