Фикс ошибки предвдущего коммита

This commit is contained in:
Gravit 2018-11-20 22:26:56 +07:00
parent 591bdea6f4
commit e9f0af36c8
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -366,9 +366,13 @@ else if (isDownloadJava) {
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, "-javaagent:".concat(pathLauncher));
Collections.addAll(args, "-classpath", pathLauncher);
if(wrapper)
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());
// Print commandline debug message