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; };