Update landing.js
This commit is contained in:
parent
041dadfe40
commit
3f531b3095
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user