From 3f531b309581dbabcd4782ff443aabae669f2db0 Mon Sep 17 00:00:00 2001 From: SoraxDubbing <52173496+Sorax5@users.noreply.github.com> Date: Fri, 20 May 2022 10:35:09 +0200 Subject: [PATCH] Update landing.js --- app/assets/js/scripts/landing.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/js/scripts/landing.js b/app/assets/js/scripts/landing.js index a4473307..6b712d7d 100644 --- a/app/assets/js/scripts/landing.js +++ b/app/assets/js/scripts/landing.js @@ -88,7 +88,7 @@ document.getElementById('launch_button').addEventListener('click', function(e){ loggerLanding.log('Launching game..') const mcVersion = DistroManager.getDistribution().getServer(ConfigManager.getSelectedServer()).getMinecraftVersion() const jExe = ConfigManager.getJavaExecutable() - if(jExe == null || jExe.includes('jdk8')){ + if(jExe == null || !jExe.includes('jdk-17')){ asyncSystemScan(mcVersion) } else { @@ -260,7 +260,7 @@ function asyncSystemScan(mcVersion, launchAfter = true){ sysAEx.on('message', (m) => { if(m.context === 'validateJava'){ - if(m.result == null || m.result.includes('jdk8')){ + if(m.result == null || !m.result.includes('jdk-17')){ // If the result is null, no valid Java installation was found. // Show this information to the user. setOverlayContent(