From e0cc50d3c47f4d5f575922083404c4f517704d44 Mon Sep 17 00:00:00 2001 From: babyboucher <48159308+babyboucher@users.noreply.github.com> Date: Wed, 15 Apr 2026 18:55:06 -0500 Subject: [PATCH] Fix hostCheats check not disabling (#3691) ## Description: Currently if you deselect Host cheats, any active host cheats will still be active. This fixes it so if you deselect Host cheats, all the cheats are disabled. ## Please complete the following: - [X] I have added screenshots for all UI updates - [X] I process any text displayed to the user through translateText() and I've added it to the en.json file - [X] I have added relevant tests to the test directory - [X] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: babyboucher --- src/server/GameServer.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/server/GameServer.ts b/src/server/GameServer.ts index 8523a8cd6..cf8ede075 100644 --- a/src/server/GameServer.ts +++ b/src/server/GameServer.ts @@ -175,9 +175,7 @@ export class GameServer { if (gameConfig.waterNukes !== undefined) { this.gameConfig.waterNukes = gameConfig.waterNukes ?? undefined; } - if (gameConfig.hostCheats !== undefined) { - this.gameConfig.hostCheats = gameConfig.hostCheats; - } + this.gameConfig.hostCheats = gameConfig.hostCheats; } private isKicked(clientID: ClientID): boolean {