Skip to content

Commit

Permalink
handcuff fix thank you vmsolidus
Browse files Browse the repository at this point in the history
  • Loading branch information
DangerRevolution committed Jan 28, 2024
1 parent dc1e9d8 commit b541008
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Content.Shared/Cuffs/SharedCuffableSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,9 @@ public bool TryAddNewCuffs(EntityUid target, EntityUid user, EntityUid handcuff,
// Success!
bool success = TrySpawnCuffSplitStack(handcuff, user, target, out EntityUid? handcuffsplit);

if (handcuffsplit == null)
return false;

if (success)
{
component.Container.Insert((EntityUid)handcuffsplit);
Expand Down

0 comments on commit b541008

Please sign in to comment.