mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-16 08:05:34 -04:00
Mod installer: Fail when Java 8 is not selected
This commit is contained in:
parent
e021d4220e
commit
7df3d7e05e
@ -285,6 +285,13 @@ public class JavaGUILauncherActivity extends LoggableActivity implements View.On
|
|||||||
JREUtils.redirectAndPrintJRELog(this);
|
JREUtils.redirectAndPrintJRELog(this);
|
||||||
try {
|
try {
|
||||||
jreReleaseList = JREUtils.readJREReleaseProperties();
|
jreReleaseList = JREUtils.readJREReleaseProperties();
|
||||||
|
|
||||||
|
// Fail immediately when Java 8 is not selected
|
||||||
|
// TODO: auto override Java 8 if installed
|
||||||
|
if (!jreReleaseList.get("JAVA_VERSION").equals("1.8.0")) {
|
||||||
|
throw new RuntimeException("Cannot use the mod installer. In order to use the mod installer, you need to install Java 8 and specify it in the Preferences menu.");
|
||||||
|
}
|
||||||
|
|
||||||
List<String> javaArgList = new ArrayList<String>();
|
List<String> javaArgList = new ArrayList<String>();
|
||||||
|
|
||||||
// Enable Caciocavallo
|
// Enable Caciocavallo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user