attempt fix private game not connecting

This commit is contained in:
Evan
2024-12-07 20:55:47 -08:00
parent 7669105a1b
commit 0a29a1fe90
5 changed files with 14 additions and 12 deletions
+1
View File
@@ -154,6 +154,7 @@ export class GameRunner {
}
if (message.type == "turn") {
if (!this.hasJoined) {
this.transport.joinGame(0)
return
}
if (this.turns.length != message.turn.turnNumber) {
-4
View File
@@ -84,10 +84,6 @@ class Client {
);
}
private stopGame() {
this?.gameStop?.()
}
private async handleLeaveLobby(event: CustomEvent) {
if (this.gameStop == null) {
return