Skip to content

Commit

Permalink
Allows you to buckle transfer person from bed to bed (#32089)
Browse files Browse the repository at this point in the history
* unbuckle if the target is buckled

* better way to do it
  • Loading branch information
Plykiya authored Sep 19, 2024
1 parent 30ac40f commit d5d6fb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Shared/Buckle/SharedBuckleSystem.Buckle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ private bool CanBuckle(EntityUid buckleUid,
return false;
}

if (buckleComp.Buckled)
if (buckleComp.Buckled && !TryUnbuckle(buckleUid, user, buckleComp))
{
if (popup)
{
Expand Down

0 comments on commit d5d6fb5

Please sign in to comment.