From 83595417069579924ea2135c961184544c5aa76a Mon Sep 17 00:00:00 2001 From: MilenVolf <63782763+MilenVolf@users.noreply.github.com> Date: Wed, 18 Dec 2024 17:26:58 +0300 Subject: [PATCH] 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 --- Content.Shared/Buckle/SharedBuckleSystem.Interaction.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Shared/Buckle/SharedBuckleSystem.Interaction.cs b/Content.Shared/Buckle/SharedBuckleSystem.Interaction.cs index 4a4da176f6d5e5..2dba18c96e5a7a 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); }