fix server crash when player with job quits

This commit is contained in:
hydrant
2019-06-23 20:31:36 +02:00
parent 6caee0f2ec
commit 8ab086f011
3 changed files with 11 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ namespace ReallifeGamemode.Server.Events
}
JobBase job = JobManager.GetJob(player.GetUser().JobId ?? -1);
if (job != null) job.StopJob(player);
if (job != null) job.StopJob(player, true);
using (var saveUser = new DatabaseContext())
{