Фикс бага с mcheil и уязвимости

This commit is contained in:
Gravit 2018-11-20 21:50:41 +07:00
parent fb75e7f5a5
commit 591bdea6f4
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -366,9 +366,9 @@ 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", classPathString.toString());
//if(wrapper)
//Collections.addAll(args, "-Djava.class.path=".concat(classPathString.toString())); // Add Class Path
Collections.addAll(args, "-classpath", pathLauncher);
if(wrapper)
Collections.addAll(args, "-Djava.class.path=".concat(pathLauncher)); // Add Class Path
Collections.addAll(args, ClientLauncher.class.getName());
// Print commandline debug message