mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-09 14:05:41 +00:00
fix lobby join bugs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user