mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2024-12-21 07:00:22 +08:00
parent
9a3b8545ca
commit
e76d520cac
@ -252,6 +252,10 @@ public enum JavaVersionConstraint {
|
||||
JavaVersion mandatory = null;
|
||||
JavaVersion suggested = null;
|
||||
for (JavaVersion javaVersion : JavaVersion.getJavas()) {
|
||||
// Do not automatically select 32-bit Java
|
||||
if (Architecture.SYSTEM_ARCH == Architecture.X86_64 && javaVersion.getArchitecture() == Architecture.X86)
|
||||
continue;
|
||||
|
||||
// select the latest x86 java that this version accepts.
|
||||
if (forceX86 && !javaVersion.getArchitecture().isX86())
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user