From 5f24506df4f00d452dbae7710990067de68d3ffa Mon Sep 17 00:00:00 2001 From: hydrant Date: Mon, 12 Apr 2021 19:49:15 +0200 Subject: [PATCH] =?UTF-8?q?[HOTFIX]=20m=C3=BCllmann=20server=20crash=20dan?= =?UTF-8?q?ke=20siga?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ReallifeGamemode.Server/Job/RefuseCollectorJob.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ReallifeGamemode.Server/Job/RefuseCollectorJob.cs b/ReallifeGamemode.Server/Job/RefuseCollectorJob.cs index b970da03..b682e78e 100644 --- a/ReallifeGamemode.Server/Job/RefuseCollectorJob.cs +++ b/ReallifeGamemode.Server/Job/RefuseCollectorJob.cs @@ -180,7 +180,11 @@ namespace ReallifeGamemode.Server.Job public void MuellmannJobBeenden(Player player) { - JobBase job = JobManager.GetJob(player.GetUser().JobId ?? -1); + if(player == null || !player.IsLoggedIn()) + { + return; + } + player.TriggerEvent("SERVER:MuellmannStatusFalse"); player.TriggerEvent("SERVER:MuellmannBCSEntfernen");