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