mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-14 09:09:04 +00:00
Merge commit from fork
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user