From b3841e841460978592776bce1c48d24392355af4 Mon Sep 17 00:00:00 2001 From: MilenVolf <63782763+MilenVolf@users.noreply.github.com> Date: Mon, 2 Dec 2024 01:09:34 +0300 Subject: [PATCH] Fix BuckleSystem always marking InteractHandEvent as Handled (#33602) * Add check before marking event as handled * Update Content.Shared/Buckle/SharedBuckleSystem.Interaction.cs Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> * Cleanup --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> --- Content.Shared/Buckle/SharedBuckleSystem.Interaction.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Content.Shared/Buckle/SharedBuckleSystem.Interaction.cs b/Content.Shared/Buckle/SharedBuckleSystem.Interaction.cs index 1a15e52a3c..4a4da176f6 100644 --- a/Content.Shared/Buckle/SharedBuckleSystem.Interaction.cs +++ b/Content.Shared/Buckle/SharedBuckleSystem.Interaction.cs @@ -115,10 +115,9 @@ public abstract partial class SharedBuckleSystem return; if (ent.Comp.BuckledTo != null) - TryUnbuckle(ent!, args.User, popup: true); + args.Handled = TryUnbuckle(ent!, args.User, popup: true); // TODO BUCKLE add out bool for whether a pop-up was generated or not. - args.Handled = true; } private void AddStrapVerbs(EntityUid uid, StrapComponent component, GetVerbsEvent args) -- 2.51.2