Fixed creative mode not working in private lobby

This commit is contained in:
NewHappyRabbit
2025-02-12 02:21:46 +02:00
parent c1732f4704
commit 1f1a07113c
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -71,6 +71,7 @@ export interface Config {
numBots(): number;
spawnNPCs(): boolean;
spawnBots(): boolean;
creativeMode(): boolean;
numSpawnPhaseTurns(): number;
startManpower(playerInfo: PlayerInfo): number;
+3
View File
@@ -63,6 +63,9 @@ export class GameServer {
if (gameConfig.disableNPCs != null) {
this.gameConfig.disableNPCs = gameConfig.disableNPCs;
}
if (gameConfig.creativeMode != null) {
this.gameConfig.creativeMode = gameConfig.creativeMode;
}
}
public addClient(client: Client, lastTurn: number) {