Merge commit from fork

This commit is contained in:
Alex Pickett
2026-04-20 11:18:02 -07:00
committed by GitHub
parent c3d7d0373e
commit 328b8859d3
3 changed files with 20 additions and 4 deletions
+6 -1
View File
@@ -59,7 +59,12 @@ export class GameManager {
creatorPersistentID?: string,
startsAt?: number,
publicGameType?: PublicGameType,
) {
): GameServer | null {
if (this.games.has(id)) {
this.log.warn("cannot create game, id already exists", { gameID: id });
return null;
}
const game = new GameServer(
id,
this.log,