Update landing.js

This commit is contained in:
SoraxDubbing 2022-05-20 10:35:09 +02:00
parent 041dadfe40
commit 3f531b3095

View File

@ -88,7 +88,7 @@ document.getElementById('launch_button').addEventListener('click', function(e){
loggerLanding.log('Launching game..') loggerLanding.log('Launching game..')
const mcVersion = DistroManager.getDistribution().getServer(ConfigManager.getSelectedServer()).getMinecraftVersion() const mcVersion = DistroManager.getDistribution().getServer(ConfigManager.getSelectedServer()).getMinecraftVersion()
const jExe = ConfigManager.getJavaExecutable() const jExe = ConfigManager.getJavaExecutable()
if(jExe == null || jExe.includes('jdk8')){ if(jExe == null || !jExe.includes('jdk-17')){
asyncSystemScan(mcVersion) asyncSystemScan(mcVersion)
} else { } else {
@ -260,7 +260,7 @@ function asyncSystemScan(mcVersion, launchAfter = true){
sysAEx.on('message', (m) => { sysAEx.on('message', (m) => {
if(m.context === 'validateJava'){ 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. // If the result is null, no valid Java installation was found.
// Show this information to the user. // Show this information to the user.
setOverlayContent( setOverlayContent(