]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Allows you to buckle transfer person from bed to bed (#32089)
authorPlykiya <58439124+Plykiya@users.noreply.github.com>
Thu, 19 Sep 2024 14:08:33 +0000 (07:08 -0700)
committerGitHub <noreply@github.com>
Thu, 19 Sep 2024 14:08:33 +0000 (00:08 +1000)
* unbuckle if the target is buckled

* better way to do it

Content.Shared/Buckle/SharedBuckleSystem.Buckle.cs

index 7f6c39eafc067920e39b7b3e685008df9edfe111..8b35f677f1856d10673a112a840c0d9d81b870b8 100644 (file)
@@ -268,7 +268,7 @@ public abstract partial class SharedBuckleSystem
             return false;
         }
 
-        if (buckleComp.Buckled)
+        if (buckleComp.Buckled && !TryUnbuckle(buckleUid, user, buckleComp))
         {
             if (popup)
             {