Fix mod installer not starting on new runtime

This commit is contained in:
artdeell 2023-02-26 17:50:25 +03:00
parent 12362b2318
commit 98a098a397

View File

@ -262,7 +262,7 @@ public class JavaGUILauncherActivity extends BaseActivity implements View.OnTouc
// Enable Caciocavallo // Enable Caciocavallo
JREUtils.jreReleaseList = JREUtils.readJREReleaseProperties(LauncherPreferences.PREF_DEFAULT_RUNTIME); JREUtils.jreReleaseList = JREUtils.readJREReleaseProperties(LauncherPreferences.PREF_DEFAULT_RUNTIME);
Tools.getCacioJavaArgs(javaArgList,JREUtils.jreReleaseList.get("JAVA_VERSION").equals("1.8.0")); Tools.getCacioJavaArgs(javaArgList,JREUtils.jreReleaseList.get("JAVA_VERSION").startsWith("1.8.0"));
if (javaArgs != null) { if (javaArgs != null) {
javaArgList.addAll(Arrays.asList(javaArgs.split(" "))); javaArgList.addAll(Arrays.asList(javaArgs.split(" ")));