From 8e20b4f66fa80e0a215bec5d6a951081b3454607 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Wed, 27 Aug 2025 13:31:07 +0200 Subject: [PATCH] fix: view profile on U39.1+ --- src/app.ts | 5 ----- src/controllers/api/loginController.ts | 6 +++++- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/app.ts b/src/app.ts index b9cca576..971fe210 100644 --- a/src/app.ts +++ b/src/app.ts @@ -13,8 +13,6 @@ import { payRouter } from "./routes/pay.ts"; import { statsRouter } from "./routes/stats.ts"; import { webuiRouter } from "./routes/webui.ts"; -import { worldStateController } from "./controllers/dynamic/worldStateController.ts"; - const app = express(); app.use((req, _res, next) => { @@ -47,9 +45,6 @@ app.use("/pay", payRouter); app.use("/stats", statsRouter); app.use("/", webuiRouter); -// U39.1+ gets worldState from that location -app.get("/worldState.php", worldStateController); - app.use(unknownEndpointHandler); app.use(errorHandler); diff --git a/src/controllers/api/loginController.ts b/src/controllers/api/loginController.ts index 20c33d7a..f3c6548a 100644 --- a/src/controllers/api/loginController.ts +++ b/src/controllers/api/loginController.ts @@ -140,7 +140,11 @@ const createLoginResponse = ( resp.MatchmakingBuildId = buildConfig.matchmakingBuildId; } if (version_compare(buildLabel, "2023.04.25.23.40") >= 0) { - resp.platformCDNs = [`${myUrlBase}/`]; + if (version_compare(buildLabel, "2025.08.26.09.49") >= 0) { + resp.platformCDNs = [`${myUrlBase}/dynamic/`]; + } else { + resp.platformCDNs = [`${myUrlBase}/`]; + } } return resp; };