]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix hugging buckled mobs instead of unbuckling (#33635)
authorMilenVolf <63782763+MilenVolf@users.noreply.github.com>
Wed, 18 Dec 2024 14:26:58 +0000 (17:26 +0300)
committerGitHub <noreply@github.com>
Wed, 18 Dec 2024 14:26:58 +0000 (15:26 +0100)
* 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

index 4a4da176f6d5e54b8f1b7dbc88324bc718a16a48..2dba18c96e5a7aa0b423aa9c48d1afbaa954fcc1 100644 (file)
@@ -15,11 +15,11 @@ public abstract partial class SharedBuckleSystem
     private void InitializeInteraction()
     {
         SubscribeLocalEvent<StrapComponent, GetVerbsEvent<InteractionVerb>>(AddStrapVerbs);
-        SubscribeLocalEvent<StrapComponent, InteractHandEvent>(OnStrapInteractHand, after: [typeof(InteractionPopupSystem)]);
+        SubscribeLocalEvent<StrapComponent, InteractHandEvent>(OnStrapInteractHand, before: [typeof(InteractionPopupSystem)]);
         SubscribeLocalEvent<StrapComponent, DragDropTargetEvent>(OnStrapDragDropTarget);
         SubscribeLocalEvent<StrapComponent, CanDropTargetEvent>(OnCanDropTarget);
 
-        SubscribeLocalEvent<BuckleComponent, InteractHandEvent>(OnBuckleInteractHand, after: [typeof(InteractionPopupSystem)]);
+        SubscribeLocalEvent<BuckleComponent, InteractHandEvent>(OnBuckleInteractHand, before: [typeof(InteractionPopupSystem)]);
         SubscribeLocalEvent<BuckleComponent, GetVerbsEvent<InteractionVerb>>(AddUnbuckleVerb);
     }