mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-15 23:59:21 -04:00
Bug fix: Arc DNS injector breaks on Java 17
Error: Failed to inject cache! java.lang.reflect.InaccessibleObjectException: Unable to make java.net.InetAddress$CachedAddresses(java.lang.String,java.net.InetAddress[],long) accessible: module java.base does not "opens java.net" to unnamed module @4157f54e
This commit is contained in:
parent
0a3385acd2
commit
fb0a96a33f
@ -136,6 +136,9 @@ public final class Tools {
|
||||
// Only Java 8 supports headful AWT for now
|
||||
if (JREUtils.jreReleaseList.get("JAVA_VERSION").equals("1.8.0")) {
|
||||
getCacioJavaArgs(javaArgList, false);
|
||||
} else if (LauncherPreferences.PREF_ARC_CAPES) {
|
||||
// Opens the java.net package to Arc DNS injector on Java 9+
|
||||
javaArgList.add("--add-opens=java.base/java.net=ALL-UNNAMED");
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user