From 9fa5e9daef286563be3251613f1d28edf9a57ee0 Mon Sep 17 00:00:00 2001 From: VariableVince <24507472+VariableVince@users.noreply.github.com> Date: Wed, 17 Dec 2025 22:09:07 +0100 Subject: [PATCH] Fix: show 0 Nations in Lobby Team Preview when disableNPCs is true (#2633) ## Description: Fix for v28: show 0 Nations in Lobby Team Preview when disableNPCs is true. Lobby Team Preview displays the number of Nations on a map, but should diplay "0 Nations" in this case. After fix: image image ## 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: tryout33 --- src/client/HostLobbyModal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/HostLobbyModal.ts b/src/client/HostLobbyModal.ts index dc0a6cb90..8948b64dc 100644 --- a/src/client/HostLobbyModal.ts +++ b/src/client/HostLobbyModal.ts @@ -556,7 +556,7 @@ export class HostLobbyModal extends LitElement { : translateText("host_modal.players") } - ${this.nationCount} + ${this.disableNPCs ? 0 : this.nationCount} ${ this.nationCount === 1 ? translateText("host_modal.nation_player")