From 230e37851ce95b228176e32c81b0c7a026e1d43d Mon Sep 17 00:00:00 2001 From: hydrant Date: Thu, 15 Apr 2021 14:13:05 +0200 Subject: [PATCH] [HOTFIX] points nicht gespeichert --- ReallifeGamemode.Server/Managers/InteractionManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ReallifeGamemode.Server/Managers/InteractionManager.cs b/ReallifeGamemode.Server/Managers/InteractionManager.cs index fc2af555..5b3e349d 100644 --- a/ReallifeGamemode.Server/Managers/InteractionManager.cs +++ b/ReallifeGamemode.Server/Managers/InteractionManager.cs @@ -642,7 +642,6 @@ namespace ReallifeGamemode.Server.Managers if (targetUser.Points < 0) { targetUser.Points = 0; - dbContext.SaveChanges(); } else if (targetUser.Points >= 12) { @@ -654,12 +653,13 @@ namespace ReallifeGamemode.Server.Managers targetUser.Points = 0; targetUser.DriverLicenseVehicle = false; targetUser.DriverLicenseBike = false; - dbContext.SaveChanges(); } else { target.SendNotification($"~w~Grund: ~g~{reason}~w~. ~x~Du hast nun ~y~{targetUser.Points}/12 ~x~Strafpunkten.", true); } + + dbContext.SaveChanges(); } [RemoteEvent("CLIENT:InteractionMenu_Ticket")]