We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9de7e0 commit 23b29aeCopy full SHA for 23b29ae
src/ps/games/game.ts
@@ -341,7 +341,7 @@ export class BaseGame<State extends BaseState> {
341
}
342
if (this.meta.players === 'single' || (Array.isArray(availableSlots) && availableSlots.length === 1) || availableSlots === 1) {
343
// Join was successful and game is now full
344
- if (this.meta.players === 'single') this.start();
+ this.start();
345
this.onAfterAddPlayer?.(newPlayer);
346
this.backup();
347
return { success: true, data: { started: true, as: newPlayer.turn } };
0 commit comments