From 64ebe9c733881618548205aef3b99ea2c592ded8 Mon Sep 17 00:00:00 2001 From: hydrant Date: Fri, 8 May 2020 15:57:10 +0200 Subject: [PATCH] fix duty in fahrzeug --- ReallifeGamemode.Server/Events/Key.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReallifeGamemode.Server/Events/Key.cs b/ReallifeGamemode.Server/Events/Key.cs index 4119d341..449310ba 100644 --- a/ReallifeGamemode.Server/Events/Key.cs +++ b/ReallifeGamemode.Server/Events/Key.cs @@ -195,7 +195,7 @@ namespace ReallifeGamemode.Server.Events JailReleasePoint nearestJailReleasePoint = PositionManager.JailReleasePoints.Find(j => j.Position.DistanceTo(player.Position) <= 1.6 && (user.FactionId == 1 || user.FactionId == 3) && user.GetData("duty")); - if (nearestDuty != null && !player.InVehicle)// Duty Point + if (nearestDuty != null && !player.IsInVehicle)// Duty Point { var nameTagColor = new Color(0, 0, 0); var factionId = user.FactionId;