From 507b01175aa71997a8e4dd86e702e511fd70d430 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Sun, 31 Aug 2025 18:36:25 +0200 Subject: [PATCH] chore: remove NRS config --- config-vanilla.json | 1 - src/controllers/api/loginController.ts | 2 +- src/services/configService.ts | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/config-vanilla.json b/config-vanilla.json index 45bbf224..827104aa 100644 --- a/config-vanilla.json +++ b/config-vanilla.json @@ -7,7 +7,6 @@ "myAddress": "localhost", "httpPort": 80, "httpsPort": 443, - "NRS": ["localhost"], "administratorNames": [], "autoCreateAccount": true, "skipTutorial": false, diff --git a/src/controllers/api/loginController.ts b/src/controllers/api/loginController.ts index f3c6548a..9d05d532 100644 --- a/src/controllers/api/loginController.ts +++ b/src/controllers/api/loginController.ts @@ -109,7 +109,7 @@ const createLoginResponse = ( BuildLabel: buildLabel }; if (version_compare(buildLabel, "2015.02.13.10.41") >= 0) { - resp.NRS = config.NRS; + resp.NRS = [myAddress]; } if (version_compare(buildLabel, "2015.05.14.16.29") >= 0) { // U17 and up diff --git a/src/services/configService.ts b/src/services/configService.ts index 28ab1c3c..aad1cd72 100644 --- a/src/services/configService.ts +++ b/src/services/configService.ts @@ -14,7 +14,6 @@ export interface IConfig { httpPort?: number; httpsPort?: number; myIrcAddresses?: string[]; - NRS?: string[]; administratorNames?: string[]; autoCreateAccount?: boolean; skipTutorial?: boolean; @@ -86,6 +85,7 @@ export interface IConfig { } export const configRemovedOptionsKeys = [ + "NRS", "skipAllDialogue", "infiniteCredits", "infinitePlatinum", -- 2.47.2