fix server crash when player with job quits
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user