[REMOVE] removed the checks for who is host

This commit is contained in:
Sem van der Hoeven
2020-10-23 17:27:43 +02:00
parent 13cf0e44ee
commit 1d8963ec60
4 changed files with 21 additions and 11 deletions

View File

@@ -121,13 +121,18 @@ namespace Client
_lobbies.Clear();
Lobby clientLobby = ClientData.Instance.Lobby;
foreach (Lobby l in lobbiesArr)
{
_lobbies.Add(l);
Lobby clientLobby = ClientData.Instance.Lobby;
if (l.ID == clientLobby?.ID)
{
clientLobby = l;
clientLobby.Users.Clear();
foreach (User user in l.Users)
{
clientLobby.Users.Add(user);
}
}
}