LSPD/FIB: Fix einsperren

This commit is contained in:
hydrant
2021-04-22 11:19:48 +02:00
parent b608ead71d
commit b06d429c73

View File

@@ -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<bool>("GotInsideOfTurf"))
if (user.Wanteds > 0 && (!player.HasData("GotInsideOfTurf") || !player.GetData<bool>("GotInsideOfTurf")))
{
if (copNearby)
{