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
This commit is contained in:
babyboucher
2026-04-15 18:55:06 -05:00
committed by GitHub
parent f1f63ec9b4
commit e0cc50d3c4
+1 -3
View File
@@ -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 {