From 91de6f80b10efc4fbe5f69c7ca571d16bf0eccaf Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Thu, 16 May 2019 14:18:33 +0200 Subject: [PATCH] Fix player list being blank when re-joining lobby. --- Content.Client/GameTicking/ClientGameTicker.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Content.Client/GameTicking/ClientGameTicker.cs b/Content.Client/GameTicking/ClientGameTicker.cs index e92e565fcc..72a9b3d42d 100644 --- a/Content.Client/GameTicking/ClientGameTicker.cs +++ b/Content.Client/GameTicking/ClientGameTicker.cs @@ -66,6 +66,11 @@ namespace Content.Client.GameTicking return; } + _updatePlayerList(); + } + + private void _updatePlayerList() + { _lobby.OnlinePlayerItemList.Clear(); foreach (var session in _playerManager.Sessions.OrderBy(s => s.Name)) { @@ -208,6 +213,8 @@ namespace Content.Client.GameTicking }; _lobby.LeaveButton.OnPressed += args => _console.ProcessCommand("disconnect"); + + _updatePlayerList(); } private void _joinGame(MsgTickerJoinGame message)