Skip to content

Commit b95da7f

Browse files
Disable countdown for debug mode
1 parent 6f56064 commit b95da7f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ export const writtenBufferChunkSize = Buffer.poolSize || 2048;
4141
export const host: string = process.env.SERVER_INFO || "unknown";
4242

4343
/** Runtime mode. */
44-
export const mode: string = process.env.NODE_ENV || "development";
44+
export const mode: string = process.env.NODE_ENV || "production";
4545

4646
/** How long the countdown should last until the game is started. By default it is 10 seconds. Set to 0 if you wish to disable this. */
47-
export const countdownTicks = 10 * tps;
47+
export const countdownTicks = (mode === "development" ? 0 : 10) * tps;
4848

4949
/** Is hosting a rest api */
5050
export const enableApi: boolean = true;

0 commit comments

Comments
 (0)