diff --git a/launcher/src/main/java/com/skcraft/launcher/launch/Runner.java b/launcher/src/main/java/com/skcraft/launcher/launch/Runner.java index d6c2ea5..10d70fe 100644 --- a/launcher/src/main/java/com/skcraft/launcher/launch/Runner.java +++ b/launcher/src/main/java/com/skcraft/launcher/launch/Runner.java @@ -138,6 +138,7 @@ public class Runner implements Callable, ProgressObservable { addProxyArgs(); addWindowArgs(); addPlatformArgs(); + addLegacyArgs(); builder.classPath(getJarPath()); builder.setMainClass(versionManifest.getMainClass()); @@ -320,6 +321,13 @@ public class Runner implements Callable, ProgressObservable { } } + /** + * Add arguments to make legacy Minecraft work. + */ + private void addLegacyArgs() { + builder.getFlags().add("-Dminecraft.applet.TargetDirectory=" + instance.getContentDir()); + } + /** * Build the list of command substitutions. *