Skip to content

Commit 23b29ae

Browse files
committed
games: Oops autostart all games
1 parent d9de7e0 commit 23b29ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ps/games/game.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ export class BaseGame<State extends BaseState> {
341341
}
342342
if (this.meta.players === 'single' || (Array.isArray(availableSlots) && availableSlots.length === 1) || availableSlots === 1) {
343343
// Join was successful and game is now full
344-
if (this.meta.players === 'single') this.start();
344+
this.start();
345345
this.onAfterAddPlayer?.(newPlayer);
346346
this.backup();
347347
return { success: true, data: { started: true, as: newPlayer.turn } };

0 commit comments

Comments
 (0)