mirror of
https://github.com/SKCraft/Launcher.git
synced 2024-11-23 12:05:44 +01:00
Add minecraft.applet.TargetDirectory flag for legacy MC.
This commit is contained in:
parent
657cbe89b5
commit
f9a728dcd6
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user