Observing outside the lobby is no longer a thing you can do. (#5587)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,10 @@ namespace Content.Server.GameTicking.Commands
|
||||
}
|
||||
|
||||
var ticker = EntitySystem.Get<GameTicker>();
|
||||
if (ticker.PlayersInLobby.ContainsKey(player))
|
||||
ticker.MakeObserve(player);
|
||||
else
|
||||
shell.WriteError($"{player.Name} is not in the lobby. This incident will be reported.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user