Fix station deletion bug (#10348)

This commit is contained in:
Leon Friedrich
2022-08-07 15:53:07 +12:00
committed by GitHub
parent 31141ad0fb
commit 099d38b562
5 changed files with 44 additions and 21 deletions

View File

@@ -64,6 +64,10 @@ namespace Content.Client.LateJoin
_jobCategories.Clear();
var gameTicker = EntitySystem.Get<ClientGameTicker>();
if (!gameTicker.DisallowedLateJoin && gameTicker.StationNames.Count == 0)
Logger.Warning("No stations exist, nothing to display in late-join GUI");
foreach (var (id, name) in gameTicker.StationNames)
{
var jobList = new BoxContainer