From a3bc28476df8aa4d9123b0573b4cc652a4ca3999 Mon Sep 17 00:00:00 2001 From: moonheart08 Date: Mon, 28 Feb 2022 10:38:36 -0600 Subject: [PATCH] Quick fix join bug. --- Content.Server/GameTicking/Commands/JoinGameCommand.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Content.Server/GameTicking/Commands/JoinGameCommand.cs b/Content.Server/GameTicking/Commands/JoinGameCommand.cs index 0fcc87a433..6c37d1af7f 100644 --- a/Content.Server/GameTicking/Commands/JoinGameCommand.cs +++ b/Content.Server/GameTicking/Commands/JoinGameCommand.cs @@ -1,15 +1,10 @@ -using System.Collections.Generic; -using Content.Server.Administration; -using Content.Server.Roles; using Content.Server.Station; using Content.Shared.Administration; +using Content.Shared.GameTicking; using Content.Shared.Roles; using Content.Shared.Station; using Robust.Server.Player; using Robust.Shared.Console; -using Robust.Shared.GameObjects; -using Robust.Shared.IoC; -using Robust.Shared.Localization; using Robust.Shared.Prototypes; namespace Content.Server.GameTicking.Commands @@ -45,7 +40,7 @@ namespace Content.Server.GameTicking.Commands var ticker = EntitySystem.Get(); var stationSystem = EntitySystem.Get(); - if (!ticker.PlayersInLobby.ContainsKey(player)) + if (!ticker.PlayersInLobby.ContainsKey(player) || ticker.PlayersInLobby[player] == LobbyPlayerStatus.Observer) { shell.WriteError($"{player.Name} is not in the lobby. This incident will be reported."); return;