mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 09:01:08 +03:00
Фикс ошибки предвдущего коммита
This commit is contained in:
parent
591bdea6f4
commit
e9f0af36c8
1 changed files with 5 additions and 1 deletions
|
@ -366,9 +366,13 @@ else if (isDownloadJava) {
|
||||||
Collections.addAll(args, profile.object.getJvmArgs());
|
Collections.addAll(args, profile.object.getJvmArgs());
|
||||||
Collections.addAll(args, "-Djava.library.path=".concat(params.clientDir.resolve(NATIVES_DIR).toString())); // Add Native Path
|
Collections.addAll(args, "-Djava.library.path=".concat(params.clientDir.resolve(NATIVES_DIR).toString())); // Add Native Path
|
||||||
Collections.addAll(args, "-javaagent:".concat(pathLauncher));
|
Collections.addAll(args, "-javaagent:".concat(pathLauncher));
|
||||||
Collections.addAll(args, "-classpath", pathLauncher);
|
|
||||||
if(wrapper)
|
if(wrapper)
|
||||||
Collections.addAll(args, "-Djava.class.path=".concat(pathLauncher)); // Add Class Path
|
Collections.addAll(args, "-Djava.class.path=".concat(pathLauncher)); // Add Class Path
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Collections.addAll(args, "-cp");
|
||||||
|
Collections.addAll(args, pathLauncher);
|
||||||
|
}
|
||||||
Collections.addAll(args, ClientLauncher.class.getName());
|
Collections.addAll(args, ClientLauncher.class.getName());
|
||||||
|
|
||||||
// Print commandline debug message
|
// Print commandline debug message
|
||||||
|
|
Loading…
Reference in a new issue