From 5cba3d84eae256cdb4fd79d6e2bed83e21f7a646 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Thu, 11 Aug 2022 16:19:45 -0400 Subject: css changes --- scripts/gui/lobby.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scripts/gui/lobby.js') diff --git a/scripts/gui/lobby.js b/scripts/gui/lobby.js index c760f50..a303da8 100644 --- a/scripts/gui/lobby.js +++ b/scripts/gui/lobby.js @@ -193,8 +193,10 @@ class Lobby { // { data.pass } true or false weather the game has a password addGame (data) { - let g = new Game(data, this.e.games); - this.games[data.id] = g; + if(this.games[data.id] == null) { + let g = new Game(data, this.e.games); + this.games[data.id] = g; + } } // Called when a new public game is removed on the server -- cgit v1.2.3