From: MilenVolf <63782763+MilenVolf@users.noreply.github.com> Date: Wed, 18 Dec 2024 14:26:58 +0000 (+0300) Subject: Fix hugging buckled mobs instead of unbuckling (#33635) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=83595417069579924ea2135c961184544c5aa76a;p=space-station-14.git Fix hugging buckled mobs instead of unbuckling (#33635) * Check buckle.BuckledTo value before hugging interaction * Make InteractHandEvent to be used by BuckleSystem before InteractionPopupSystem instead of after --- diff --git a/Content.Shared/Buckle/SharedBuckleSystem.Interaction.cs b/Content.Shared/Buckle/SharedBuckleSystem.Interaction.cs index 4a4da176f6..2dba18c96e 100644 --- a/Content.Shared/Buckle/SharedBuckleSystem.Interaction.cs +++ b/Content.Shared/Buckle/SharedBuckleSystem.Interaction.cs @@ -15,11 +15,11 @@ public abstract partial class SharedBuckleSystem private void InitializeInteraction() { SubscribeLocalEvent>(AddStrapVerbs); - SubscribeLocalEvent(OnStrapInteractHand, after: [typeof(InteractionPopupSystem)]); + SubscribeLocalEvent(OnStrapInteractHand, before: [typeof(InteractionPopupSystem)]); SubscribeLocalEvent(OnStrapDragDropTarget); SubscribeLocalEvent(OnCanDropTarget); - SubscribeLocalEvent(OnBuckleInteractHand, after: [typeof(InteractionPopupSystem)]); + SubscribeLocalEvent(OnBuckleInteractHand, before: [typeof(InteractionPopupSystem)]); SubscribeLocalEvent>(AddUnbuckleVerb); }