Minor fixes and improvements.
Fixed issue with passing fullscreen argment to 1.13+, although it doesnt seem to be working well clientside. Improved the forge version check logic. Fixed launch area toggling and added a min linger time so that the transition doesnt look abrupt. Upgraded dependencies.
This commit is contained in:
@@ -172,23 +172,26 @@ class Util {
|
||||
return true
|
||||
}
|
||||
|
||||
let forgeVer = null
|
||||
try {
|
||||
forgeVer = forgeVersion.split('-')[1]
|
||||
|
||||
const forgeVer = forgeVersion.split('-')[1]
|
||||
|
||||
const maxFG2 = [14, 23, 5, 2847]
|
||||
const verSplit = forgeVer.split('.').map(v => Number(v))
|
||||
|
||||
for(let i=0; i<maxFG2.length; i++) {
|
||||
if(verSplit[i] > maxFG2[i]) {
|
||||
return true
|
||||
} else if(verSplit[i] < maxFG2[i]) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
return false
|
||||
|
||||
} catch(err) {
|
||||
throw new Error('Forge version is complex (changed).. launcher requires a patch.')
|
||||
}
|
||||
|
||||
const maxFG2 = [14, 23, 5, 2847]
|
||||
const verSplit = forgeVer.split('.').map(v => Number(v))
|
||||
|
||||
for(let i=0; i<maxFG2.length; i++) {
|
||||
if(verSplit[i] > maxFG2[i]) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user