From a56b30c1d52c22899179590c80138b0b67e22ebf Mon Sep 17 00:00:00 2001 From: Fabian Date: Mon, 19 Apr 2021 00:38:36 +0200 Subject: [PATCH] =?UTF-8?q?ja=C2=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ReallifeGamemode.Server/Commands/FactionCommands.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ReallifeGamemode.Server/Commands/FactionCommands.cs b/ReallifeGamemode.Server/Commands/FactionCommands.cs index 6147647e..5d8c523b 100644 --- a/ReallifeGamemode.Server/Commands/FactionCommands.cs +++ b/ReallifeGamemode.Server/Commands/FactionCommands.cs @@ -538,7 +538,11 @@ namespace ReallifeGamemode.Server.Commands target.TriggerEvent("jailTime", 0); targetUser.Wanteds = 0; - PositionManager.cuffPoints.Remove(target); + + if (PositionManager.cuffPoints.Contains(player)) + { + PositionManager.cuffPoints.Remove(player); + } targetUser.SetBlipAndNametagColor();