Skip to content

Commit

Permalink
ugh
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon-Huu committed Jul 29, 2024
1 parent 4f8b634 commit 8b5b0e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/*
#nullable enable
using Content.Server.Cuffs;
using Content.Shared.Body.Components;
Expand Down Expand Up @@ -106,3 +107,4 @@ private static void AddHand(NetEntity to, IServerConsoleHost host)
}
}
}
*/
5 changes: 3 additions & 2 deletions Content.Shared/Cuffs/SharedCuffableSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,9 @@ public bool TryAddNewCuffs(EntityUid target, EntityUid user, EntityUid handcuff,
if (!_interaction.InRangeUnobstructed(handcuff, target))
return false;

// Success!
_hands.TryDrop(user, handcuff);
// Success?
if(!_hands.TryDrop(user, handcuff))
return false;

_container.Insert(handcuff, component.Container);
UpdateHeldItems(target, handcuff, component);
Expand Down

0 comments on commit 8b5b0e2

Please sign in to comment.