mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-18 01:46:11 +00:00
Fix immediate crash for some users
This commit is contained in:
parent
62cb04b8ca
commit
3a050fba3b
@ -360,7 +360,7 @@ public class Fawe {
|
|||||||
}
|
}
|
||||||
String arch = System.getenv("PROCESSOR_ARCHITECTURE");
|
String arch = System.getenv("PROCESSOR_ARCHITECTURE");
|
||||||
String wow64Arch = System.getenv("PROCESSOR_ARCHITEW6432");
|
String wow64Arch = System.getenv("PROCESSOR_ARCHITEW6432");
|
||||||
boolean x86OS = !(arch.endsWith("64") || wow64Arch != null && wow64Arch.endsWith("64"));
|
boolean x86OS = arch == null ? true : !(arch.endsWith("64") || wow64Arch != null && wow64Arch.endsWith("64"));
|
||||||
boolean x86JVM = System.getProperty("sun.arch.data.model").equals("32");
|
boolean x86JVM = System.getProperty("sun.arch.data.model").equals("32");
|
||||||
if (x86OS != x86JVM) {
|
if (x86OS != x86JVM) {
|
||||||
debug("====== UPGRADE TO 64-BIT JAVA ======");
|
debug("====== UPGRADE TO 64-BIT JAVA ======");
|
||||||
|
Loading…
Reference in New Issue
Block a user