From b5410084850d2399922a871e01589a37952cda94 Mon Sep 17 00:00:00 2001 From: DangerRevoltion <142105406+DangerRevoltion@users.noreply.github.com> Date: Sun, 28 Jan 2024 23:42:48 +0000 Subject: [PATCH] handcuff fix thank you vmsolidus --- Content.Shared/Cuffs/SharedCuffableSystem.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Content.Shared/Cuffs/SharedCuffableSystem.cs b/Content.Shared/Cuffs/SharedCuffableSystem.cs index f82b91e6615..e97ffb4d37e 100644 --- a/Content.Shared/Cuffs/SharedCuffableSystem.cs +++ b/Content.Shared/Cuffs/SharedCuffableSystem.cs @@ -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);