fix bug: join public lobby and then select single player

This commit is contained in:
evanpelle
2024-10-12 18:23:33 -07:00
parent ac46c786c9
commit 364691240f
+3
View File
@@ -66,6 +66,9 @@ class Client {
this.ip
]);
console.log(`got ip ${clientIP}`)
if (this.game != null) {
this.game.stop()
}
this.game = createClientGame(
event.detail.singlePlayer,
(): string => {return this.usernameInput.getCurrentUsername()},