From 80e3c1cc6aca4b951ee20ddbb8dbd77747ff63bb Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Sat, 13 Jan 2024 20:58:28 +0300 Subject: [PATCH] add custom auth server args --- app/assets/js/processbuilder.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/assets/js/processbuilder.js b/app/assets/js/processbuilder.js index 0e95562..2f6c180 100644 --- a/app/assets/js/processbuilder.js +++ b/app/assets/js/processbuilder.js @@ -350,6 +350,10 @@ class ProcessBuilder { } } + + + + /** * Construct the argument array that will be passed to the JVM process. * This function is for 1.12 and below. @@ -359,9 +363,7 @@ class ProcessBuilder { * @returns {Array.} An array containing the full JVM arguments for this process. */ _constructJVMArguments112(mods, tempNativePath){ - let args = [] - // Classpath Argument args.push('-cp') args.push(this.classpathArg(mods, tempNativePath).join(ProcessBuilder.getClasspathSeparator())) @@ -404,6 +406,10 @@ class ProcessBuilder { // Debug securejarhandler // args.push('-Dbsl.debug=true') + args.push('-Dminecraft.api.auth.host=http://localhost:8083/yggdrasil/auth') + args.push('-Dminecraft.api.account.host=http://localhost:8083/yggdrasil/account') + args.push('-Dminecraft.api.session.host=http://localhost:8083/yggdrasil') + args.push('-Dminecraft.api.services.host=http://localhost:8083/yggdrasil/services') if(this.modManifest.arguments.jvm != null) { for(const argStr of this.modManifest.arguments.jvm) {