nosingleplayer 1.1.5: fond en vrai PNG (MC rejette le JPEG) + launcher: autoconnect désactivé

This commit is contained in:
Anaïs Saraiva
2026-10-19 20:48:49 +02:00
parent c92059db26
commit 8053411565
6 changed files with 2 additions and 43 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ const DEFAULT_CONFIG = {
resWidth: 1280,
resHeight: 720,
fullscreen: false,
autoConnect: true,
autoConnect: false,
launchDetached: true
},
launcher: {
-21
View File
@@ -431,20 +431,6 @@ class ProcessBuilder {
}
_processAutoConnectArg(args){
if(ConfigManager.getAutoConnect() && this.server.rawServer.autoconnect){
if(mcVersionAtLeast('1.20', this.server.rawServer.minecraftVersion)){
args.push('--quickPlayMultiplayer')
args.push(`${this.server.hostname}:${this.server.port}`)
} else {
args.push('--server')
args.push(this.server.hostname)
args.push('--port')
args.push(this.server.port)
}
}
}
/**
* Construct the argument array that will be passed to the JVM process.
*
@@ -647,10 +633,6 @@ class ProcessBuilder {
}
}
// Autoconnect
this._processAutoConnectArg(args)
// Forge Specific Arguments
args = args.concat(this.modManifest.arguments.game)
@@ -715,9 +697,6 @@ class ProcessBuilder {
}
}
// Autoconnect to the selected server.
this._processAutoConnectArg(mcArgs)
// Prepare game resolution
if(ConfigManager.getFullscreen()){
mcArgs.push('--fullscreen')