From: MilenVolf <63782763+MilenVolf@users.noreply.github.com> Date: Sun, 1 Dec 2024 22:09:34 +0000 (+0300) Subject: Fix BuckleSystem always marking InteractHandEvent as Handled (#33602) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=b3841e841460978592776bce1c48d24392355af4;p=space-station-14.git 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> --- 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)