From fdd8e59ec4ce80acd3e180acf9691e6b1cdd55ae Mon Sep 17 00:00:00 2001 From: sanasol Date: Fri, 20 Feb 2026 15:54:17 +0100 Subject: [PATCH] v2.3.3: fix singleplayer crash when install path has spaces JAVA_TOOL_OPTIONS -javaagent path was not quoted, causing JVM to truncate at first space. Affects all users with spaces in install path (e.g. "Hytale F2P Launcher"). Co-Authored-By: Claude Opus 4.6 --- backend/managers/gameLauncher.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/managers/gameLauncher.js b/backend/managers/gameLauncher.js index 22ec0a1..4e66906 100644 --- a/backend/managers/gameLauncher.js +++ b/backend/managers/gameLauncher.js @@ -439,7 +439,7 @@ exec "$REAL_JAVA" "\${ARGS[@]}" // This enables runtime auth patching without modifying the server JAR const agentJar = path.join(gameLatest, 'Server', 'dualauth-agent.jar'); if (fs.existsSync(agentJar)) { - const agentFlag = `-javaagent:${agentJar}`; + const agentFlag = `-javaagent:"${agentJar}"`; env.JAVA_TOOL_OPTIONS = env.JAVA_TOOL_OPTIONS ? `${env.JAVA_TOOL_OPTIONS} ${agentFlag}` : agentFlag; diff --git a/package.json b/package.json index 526c83f..6246448 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hytale-f2p-launcher", - "version": "2.3.2", + "version": "2.3.3", "description": "A modern, cross-platform launcher for Hytale with automatic updates and multi-client support", "homepage": "https://github.com/amiayweb/Hytale-F2P", "main": "main.js",