[Bug fix] JRE exit code -1 in non-first time launch

This commit is contained in:
khanhduytran0 2020-10-30 15:03:21 +07:00
parent 00300a6755
commit c4e56b045c
4 changed files with 14 additions and 8 deletions

View file

@ -75,6 +75,7 @@ public final class Tools
public static ShellProcessOperation mLaunchShell;
private static int exitCode = 0;
public static void launchMinecraft(final LoggableActivity ctx, MCProfile.Builder profile, JMinecraftVersionList.Version versionInfo) throws Throwable {
JREUtils.relocateLibPath();
String[] launchArgs = getMinecraftArgs(profile, versionInfo);
List<String> javaArgList = new ArrayList<String>();