fix: view profile on U39.1+
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build / build (pull_request) Successful in 1m5s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build / build (pull_request) Successful in 1m5s
				
			This commit is contained in:
		
							parent
							
								
									c9cc1fa089
								
							
						
					
					
						commit
						8e20b4f66f
					
				@ -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);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -140,7 +140,11 @@ const createLoginResponse = (
 | 
			
		||||
        resp.MatchmakingBuildId = buildConfig.matchmakingBuildId;
 | 
			
		||||
    }
 | 
			
		||||
    if (version_compare(buildLabel, "2023.04.25.23.40") >= 0) {
 | 
			
		||||
        if (version_compare(buildLabel, "2025.08.26.09.49") >= 0) {
 | 
			
		||||
            resp.platformCDNs = [`${myUrlBase}/dynamic/`];
 | 
			
		||||
        } else {
 | 
			
		||||
            resp.platformCDNs = [`${myUrlBase}/`];
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    return resp;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user