diff --git a/patches/api/0006-SIMD-Java-17.patch b/patches/api/0006-SIMD-Java-17.patch index b8b7de1..d044f8e 100644 --- a/patches/api/0006-SIMD-Java-17.patch +++ b/patches/api/0006-SIMD-Java-17.patch @@ -13,7 +13,7 @@ index ab5fea0b03224bf249352ce340e94704ff713345..1c9835f0b54398f7707763a49dd953ad public static boolean canEnable(Logger logger) { try { - if (SIMDDetection.getJavaVersion() != 17 && SIMDDetection.getJavaVersion() != 18 && SIMDDetection.getJavaVersion() != 19) { -+ if (SIMDDetection.getJavaVersion() >= 17) { // Plazma - SIMD Java 17+ ++ if (SIMDDetection.getJavaVersion() < 17) { // Plazma - SIMD Java 17+ return false; } else { SIMDDetection.testRun = true; diff --git a/patches/server/0049-SIMD-Java-17.patch b/patches/server/0049-SIMD-Java-17.patch index d8008bf..ec6ccea 100644 --- a/patches/server/0049-SIMD-Java-17.patch +++ b/patches/server/0049-SIMD-Java-17.patch @@ -13,7 +13,7 @@ index 78bd9082366ea678c1ee4107b69845062eeede86..661a21e97dfaa23dd4cee7571bb486ea try { SIMDDetection.isEnabled = SIMDDetection.canEnable(PufferfishLogger.LOGGER); - SIMDDetection.versionLimited = SIMDDetection.getJavaVersion() != 17 && SIMDDetection.getJavaVersion() != 18 && SIMDDetection.getJavaVersion() != 19; -+ SIMDDetection.versionLimited = SIMDDetection.getJavaVersion() >= 17; // Plazma - SIMD Java 17+ ++ SIMDDetection.versionLimited = SIMDDetection.getJavaVersion() < 17; // Plazma - SIMD Java 17+ } catch (NoClassDefFoundError | Exception ignored) { ignored.printStackTrace(); }