From 6f57c8c93b2cbcb4fd67bd08aa9594912d78567d Mon Sep 17 00:00:00 2001 From: CroniX Date: Fri, 31 Jul 2020 19:51:34 +0200 Subject: [PATCH] fix jailtime --- ReallifeGamemode.Server/Wanted/Jail.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ReallifeGamemode.Server/Wanted/Jail.cs b/ReallifeGamemode.Server/Wanted/Jail.cs index 3f4ec861..29fcd099 100644 --- a/ReallifeGamemode.Server/Wanted/Jail.cs +++ b/ReallifeGamemode.Server/Wanted/Jail.cs @@ -89,13 +89,13 @@ namespace ReallifeGamemode.Server.Wanted int timeMinutes = 0; - if (((int)(client.GetUser().JailTime / 60)) <= 1 && client.GetUser().JailTime != 0) + if (((int)(client.GetUser().jailTime / 60)) <= 1 && client.GetUser().jailTime != 0) { timeMinutes = 1; } else { - timeMinutes = (int)(client.GetUser().JailTime / 60); + timeMinutes = (int)(client.GetUser().jailTime / 60); } client.TriggerEvent("jailTime", JsonConvert.SerializeObject(timeMinutes));