Oh god (#5534)
* Fixes the funny station issue and prevents free respawns * not in the sudoers file
This commit is contained in:
@@ -43,6 +43,13 @@ namespace Content.Server.GameTicking.Commands
|
||||
|
||||
var ticker = EntitySystem.Get<GameTicker>();
|
||||
var stationSystem = EntitySystem.Get<StationSystem>();
|
||||
|
||||
if (!ticker.PlayersInLobby.ContainsKey(player))
|
||||
{
|
||||
shell.WriteError($"{player.Name} not in the lobby. This incident will be reported.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (ticker.RunLevel == GameRunLevel.PreRoundLobby)
|
||||
{
|
||||
shell.WriteLine("Round has not started.");
|
||||
|
||||
@@ -35,7 +35,7 @@ public class StationSystem : EntitySystem
|
||||
/// </summary>
|
||||
private void OnRoundEnd(GameRunLevelChangedEvent eventArgs)
|
||||
{
|
||||
if (eventArgs.New == GameRunLevel.PostRound)
|
||||
if (eventArgs.New == GameRunLevel.PreRoundLobby)
|
||||
_stationInfo = new();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user