diff --git a/app/assets/js/processbuilder.js b/app/assets/js/processbuilder.js index b86698c..18c48fb 100644 --- a/app/assets/js/processbuilder.js +++ b/app/assets/js/processbuilder.js @@ -307,10 +307,15 @@ class ProcessBuilder { _processAutoConnectArg(args){ if(ConfigManager.getAutoConnect() && this.server.rawServer.autoconnect){ - args.push('--server') - args.push(this.server.hostname) - args.push('--port') - args.push(this.server.port) + 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) + } } }