From 7ce89e9903e2abee3367d485d62e969432a91eec Mon Sep 17 00:00:00 2001 From: coolGi Date: Thu, 12 Oct 2023 18:38:56 +0000 Subject: [PATCH] Fixed yet another issue relating to spaces in the path --- .../seibel/distanthorizons/core/jar/updater/SelfUpdater.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/seibel/distanthorizons/core/jar/updater/SelfUpdater.java b/core/src/main/java/com/seibel/distanthorizons/core/jar/updater/SelfUpdater.java index a2b4aa73f..a5f5d0c7f 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/jar/updater/SelfUpdater.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/jar/updater/SelfUpdater.java @@ -317,9 +317,9 @@ public class SelfUpdater // Execute the new jar, to delete the old jar once it detects the lock has been lifted Runtime.getRuntime().exec( - "\""+ javaBin +"\" -cp "+ + "\""+ javaBin +"\" -cp \""+ newFileLocation.getAbsolutePath() - +" "+ + +"\" "+ DeleteOnUnlock.class.getCanonicalName() +" "+ URLEncoder.encode(JarUtils.jarFile.getAbsolutePath(), "UTF-8") // Encode the file location so that it doesnt have any spaces