Observing outside the lobby is no longer a thing you can do. (#5587)

This commit is contained in:
Moony
2021-11-27 19:28:32 -06:00
committed by GitHub
parent 47a19f94d4
commit 78b5cca638
2 changed files with 5 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ namespace Content.Server.GameTicking.Commands
if (!ticker.PlayersInLobby.ContainsKey(player))
{
shell.WriteError($"{player.Name} not in the lobby. This incident will be reported.");
shell.WriteError($"{player.Name} is not in the lobby. This incident will be reported.");
return;
}

View File

@@ -22,7 +22,10 @@ namespace Content.Server.GameTicking.Commands
}
var ticker = EntitySystem.Get<GameTicker>();
ticker.MakeObserve(player);
if (ticker.PlayersInLobby.ContainsKey(player))
ticker.MakeObserve(player);
else
shell.WriteError($"{player.Name} is not in the lobby. This incident will be reported.");
}
}
}