Revert "Revert "Load Maps on Round Start, not Round Restart v3 (#6989)" (#6990)"

This reverts commit 4aa65b6708.

Fixed the deadlock bug on postgres.
This commit is contained in:
Pieter-Jan Briers
2022-03-04 23:25:41 +01:00
parent c8a7f41331
commit 2c721226d6
6 changed files with 117 additions and 90 deletions

View File

@@ -108,6 +108,9 @@ namespace Content.Server.GameTicking
private string? PickBestAvailableJob(IPlayerSession playerSession, HumanoidCharacterProfile profile,
StationId station)
{
if (station == StationId.Invalid)
return null;
var available = _stationSystem.StationInfo[station].JobList;
bool TryPick(JobPriority priority, [NotNullWhen(true)] out string? jobId)