From e3ef3b2eb6a8071df2ec09dc5e7f8a22d8448bd1 Mon Sep 17 00:00:00 2001 From: balbo Date: Wed, 5 Aug 2020 23:13:37 +0200 Subject: [PATCH] knastzeit bug fix --- 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 56d2bd54..20563979 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)(Jailtime[user.Id] / 60)) <= 1 && Jailtime[user.Id] != 0) { timeMinutes = 1; } else { - timeMinutes = (int)(client.GetUser().JailTime / 60); + timeMinutes = (int)(Jailtime[user.Id] / 60); } client.TriggerEvent("jailTime", JsonConvert.SerializeObject(timeMinutes));