From c6407f6bdf06b09841b6bc4338a972e11ef81638 Mon Sep 17 00:00:00 2001 From: Vasilis The Pikachu Date: Sat, 25 Feb 2023 18:17:40 +0100 Subject: [PATCH] Fix strip menu opening on regular click (#14272) --- Content.Server/Buckle/Systems/BuckleSystem.Buckle.cs | 3 ++- Content.Server/Interaction/InteractionPopupSystem.cs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Content.Server/Buckle/Systems/BuckleSystem.Buckle.cs b/Content.Server/Buckle/Systems/BuckleSystem.Buckle.cs index 48ec12f9f9..32d2a9ba02 100644 --- a/Content.Server/Buckle/Systems/BuckleSystem.Buckle.cs +++ b/Content.Server/Buckle/Systems/BuckleSystem.Buckle.cs @@ -76,7 +76,8 @@ public sealed partial class BuckleSystem private void HandleInteractHand(EntityUid uid, BuckleComponent component, InteractHandEvent args) { - args.Handled = TryUnbuckle(uid, args.User, buckle: component); + if (TryUnbuckle(uid, args.User, buckle: component)) + args.Handled = true; } private void MoveEvent(EntityUid uid, BuckleComponent buckle, ref MoveEvent ev) diff --git a/Content.Server/Interaction/InteractionPopupSystem.cs b/Content.Server/Interaction/InteractionPopupSystem.cs index ca14b28433..286919b64f 100644 --- a/Content.Server/Interaction/InteractionPopupSystem.cs +++ b/Content.Server/Interaction/InteractionPopupSystem.cs @@ -34,6 +34,8 @@ public sealed class InteractionPopupSystem : EntitySystem if (HasComp(uid)) return; + args.Handled = true; + var curTime = _gameTiming.CurTime; if (curTime < component.LastInteractTime + component.InteractDelay) @@ -85,6 +87,5 @@ public sealed class InteractionPopupSystem : EntitySystem } component.LastInteractTime = curTime; - args.Handled = true; } }