From 63d594a069a0e2e3c375614c949eea848d0a0c84 Mon Sep 17 00:00:00 2001 From: Samuel J Voeller Date: Sun, 29 Mar 2020 17:47:32 -0500 Subject: [PATCH] Fix #355 --- worldedit-core/src/main/java/com/boydti/fawe/Fawe.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/worldedit-core/src/main/java/com/boydti/fawe/Fawe.java b/worldedit-core/src/main/java/com/boydti/fawe/Fawe.java index c3fc8a875..432d034ed 100644 --- a/worldedit-core/src/main/java/com/boydti/fawe/Fawe.java +++ b/worldedit-core/src/main/java/com/boydti/fawe/Fawe.java @@ -353,10 +353,10 @@ public class Fawe { debug("==============================================="); } } - String arch = System.getenv("PROCESSOR_ARCHITECTURE"); - String wow64Arch = System.getenv("PROCESSOR_ARCHITEW6432"); - boolean x86OS = arch == null ? true : !(arch.endsWith("64") || wow64Arch != null && wow64Arch.endsWith("64")); - boolean x86JVM = System.getProperty("sun.arch.data.model").equals("32"); + + // Check Base OS Arch for Mismatching Architectures + boolean x86OS = System.getProperty("sun.arch.data.model").contains("32"); + boolean x86JVM = System.getProperty("os.arch").contains("32"); if (x86OS != x86JVM) { debug("====== UPGRADE TO 64-BIT JAVA ======"); debug("You are running 32-bit Java on a 64-bit machine");