From bcd8082afe1597838176b941e03adbd307e031e0 Mon Sep 17 00:00:00 2001 From: Daniel Scalzi Date: Sun, 18 Nov 2018 04:33:59 -0500 Subject: [PATCH] Fix native lib extraction for old MC versions. #18 --- app/assets/js/processbuilder.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/assets/js/processbuilder.js b/app/assets/js/processbuilder.js index 0741729..6364984 100644 --- a/app/assets/js/processbuilder.js +++ b/app/assets/js/processbuilder.js @@ -375,14 +375,9 @@ class ProcessBuilder { libs.push(to) } else { // Extract the native library. - const natives = lib.natives const extractInst = lib.extract const exclusionArr = extractInst.exclude - const opSys = Library.mojangFriendlyOS() - const indexId = natives[opSys] - const dlInfo = lib.downloads - const classifiers = dlInfo.classifiers - const artifact = classifiers[indexId] + const artifact = lib.downloads.classifiers[lib.natives[Library.mojangFriendlyOS()].replace('${arch}', process.arch.replace('x', ''))] // Location of native zip. const to = path.join(this.libPath, artifact.path)