fix lobby join bugs

This commit is contained in:
evanpelle
2024-10-15 20:00:56 -07:00
parent f4828db07d
commit be7a01954a
7 changed files with 36 additions and 15 deletions
+1
View File
@@ -137,6 +137,7 @@ export class GameServer {
if (!this.isPublic) {
if (this._hasStarted) {
if (this.clients.length == 0) {
console.log(`game ${this.id} is finisehd`)
return GamePhase.Finished
} else {
return GamePhase.Active