mirror of
https://github.com/dscalzi/HeliosLauncher.git
synced 2024-12-22 03:32:12 -08:00
fix: auto connect for 1.20+ (#316)
This commit is contained in:
parent
16790ca416
commit
cf7fd2f411
@ -307,12 +307,17 @@ class ProcessBuilder {
|
|||||||
|
|
||||||
_processAutoConnectArg(args){
|
_processAutoConnectArg(args){
|
||||||
if(ConfigManager.getAutoConnect() && this.server.rawServer.autoconnect){
|
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('--server')
|
||||||
args.push(this.server.hostname)
|
args.push(this.server.hostname)
|
||||||
args.push('--port')
|
args.push('--port')
|
||||||
args.push(this.server.port)
|
args.push(this.server.port)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct the argument array that will be passed to the JVM process.
|
* Construct the argument array that will be passed to the JVM process.
|
||||||
|
Loading…
Reference in New Issue
Block a user