From 15b2efefde7be39a50a5e3dbc05eeeb7f592000c Mon Sep 17 00:00:00 2001 From: Daniel Scalzi Date: Mon, 6 Mar 2023 22:57:21 -0500 Subject: [PATCH] remove more replaced code. --- app/assets/js/assetguard.js | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/app/assets/js/assetguard.js b/app/assets/js/assetguard.js index 8c4b1e03..691da4fa 100644 --- a/app/assets/js/assetguard.js +++ b/app/assets/js/assetguard.js @@ -79,34 +79,6 @@ class Util { return true } - static isForgeGradle3(mcVersion, forgeVersion) { - - if(Util.mcVersionAtLeast('1.13', mcVersion)) { - return true - } - - try { - - 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[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.') - } - } - static isAutoconnectBroken(forgeVersion) { const minWorking = [31, 2, 15]