From: Plykiya <58439124+Plykiya@users.noreply.github.com> Date: Thu, 19 Sep 2024 14:08:33 +0000 (-0700) Subject: Allows you to buckle transfer person from bed to bed (#32089) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=d5d6fb51aa6e8d378fb92fb4ad7bea0682f7e721;p=space-station-14.git Allows you to buckle transfer person from bed to bed (#32089) * unbuckle if the target is buckled * better way to do it --- diff --git a/Content.Shared/Buckle/SharedBuckleSystem.Buckle.cs b/Content.Shared/Buckle/SharedBuckleSystem.Buckle.cs index 7f6c39eafc..8b35f677f1 100644 --- a/Content.Shared/Buckle/SharedBuckleSystem.Buckle.cs +++ b/Content.Shared/Buckle/SharedBuckleSystem.Buckle.cs @@ -268,7 +268,7 @@ public abstract partial class SharedBuckleSystem return false; } - if (buckleComp.Buckled) + if (buckleComp.Buckled && !TryUnbuckle(buckleUid, user, buckleComp)) { if (popup) {