1
0
mirror of https://github.com/SKCraft/Launcher.git synced 2024-11-24 12:16:28 +01:00

Add minecraft.applet.TargetDirectory flag for legacy MC.

This commit is contained in:
sk89q 2017-08-18 15:34:24 -07:00
parent 657cbe89b5
commit f9a728dcd6

View File

@ -138,6 +138,7 @@ public class Runner implements Callable<Process>, ProgressObservable {
addProxyArgs();
addWindowArgs();
addPlatformArgs();
addLegacyArgs();
builder.classPath(getJarPath());
builder.setMainClass(versionManifest.getMainClass());
@ -320,6 +321,13 @@ public class Runner implements Callable<Process>, 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.
*