Skip to content

Commit bc056e9

Browse files
committed
Fixed fabric download
1 parent f1618c5 commit bc056e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "simplelauncher",
3-
"version": "0.3.5",
3+
"version": "0.3.6",
44
"description": "Launcher for SimpleClient",
55
"main": "src/main.js",
66
"scripts": {

src/download/fabricdownloader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const downloadFabric = async (version, meta) => {
1414
const fabricInstallerResponse = await fetch('https://meta.fabricmc.net/v2/versions/installer')
1515
if (!fabricInstallerResponse) return false
1616
const fabricInstallerJson = await fabricInstallerResponse.json()
17-
const fabricInstallerFile = join(dir, `fabric-installer-${fabricInstallerJson[0].version}.jar`)
17+
const fabricInstallerFile = join(getDirectory(), 'versions', version.id, `fabric-installer-${fabricInstallerJson[0].version}.jar`)
1818
if (!downloadFiles([[fabricInstallerJson[0].url, fabricInstallerFile]], undefined, log)) return false
1919
log('Executing Fabric installer...')
2020
const args = ['-jar', fabricInstallerFile, 'client', '-dir', getMinecraftDir(), '-mcversion', version.minecraft_version, '-loader', version.fabric_version, '-noprofile']

0 commit comments

Comments
 (0)