Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Commit 7c215f7

Browse files
committed
fixes
1 parent a5cda26 commit 7c215f7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/java.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async function downloadNext(dir, downloads, files, filecount) {
4343
files.shift()
4444
log(`Successfully created directory ${file} (${files.length}/${filecount} remaining)`)
4545
if (files.length == 0) return true
46-
else return await downloadNext(dir, downloads, files, filecount, callback)
46+
else return await downloadNext(dir, downloads, files, filecount)
4747
} else if ('downloads' in data && 'raw' in data.downloads) {
4848
log(`Downloading ${file}...`)
4949
try {
@@ -64,7 +64,7 @@ async function downloadNext(dir, downloads, files, filecount) {
6464
files.shift()
6565
log(`Cannot download ${file} (${files.length}/${filecount} remaining)`)
6666
if (files.length == 0) return true
67-
else return await downloadNext(dir, downloads, files, filecount, callback)
67+
else return await downloadNext(dir, downloads, files, filecount)
6868
}
6969
}
7070

src/minecraft.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async function downloadLibraries(versionMeta) {
5858
if (!existsSync(join(dir, library.downloads.artifact.path))) {
5959
log(`Downloading library ${library.name}...`)
6060
const libraryDir = dirname(join(dir, library.downloads.artifact.path))
61-
if (!existsSync(libraryDir)) mkdirSync(libraryDir)
61+
if (!existsSync(libraryDir)) mkdirSync(libraryDir, {recursive: true})
6262
spawnSync('curl', ['-L', library.downloads.artifact.url, '-o', join(dir, library.downloads.artifact.path)])
6363
log(`Successfully downloaded library ${library.name}...`)
6464
}

0 commit comments

Comments
 (0)