Skip to content

Commit

Permalink
Fix native lib extraction for old MC versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
dscalzi committed Nov 18, 2018
1 parent 0327323 commit bcd8082
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/assets/js/processbuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bcd8082

Please sign in to comment.