From b06d429c73e00183c484da34354ef65bf8e5d6a1 Mon Sep 17 00:00:00 2001 From: hydrant Date: Thu, 22 Apr 2021 11:19:48 +0200 Subject: [PATCH] LSPD/FIB: Fix einsperren --- ReallifeGamemode.Server/Events/Death.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReallifeGamemode.Server/Events/Death.cs b/ReallifeGamemode.Server/Events/Death.cs index c2eba6d0..460be668 100644 --- a/ReallifeGamemode.Server/Events/Death.cs +++ b/ReallifeGamemode.Server/Events/Death.cs @@ -142,7 +142,7 @@ namespace ReallifeGamemode.Server.Events bool copNearby = NAPI.Pools.GetAllPlayers().Any(u => u.IsDuty() && u.IsAlive() && u.Position.DistanceToSquared(player.Position) <= 100 * 100); - if (user.Wanteds > 0 && player.HasData("GotInsideOfTurf") && !player.GetData("GotInsideOfTurf")) + if (user.Wanteds > 0 && (!player.HasData("GotInsideOfTurf") || !player.GetData("GotInsideOfTurf"))) { if (copNearby) {