Pierce01 / MinecraftLauncher-core

Lightweight module that downloads and runs Minecraft using javascript / NodeJS
MIT License
356 stars 81 forks source link

Error when trying to use clientPackage #81

Closed GamesX50 closed 2 years ago

GamesX50 commented 2 years ago

Hi, I'm creating my own launcher and I'm using clientPackage to install from a website and put it in my launcher. The problem is that copy the file in the directory minecraft instead of versions and give me error. I fixed it changing the line 658 of handler.js:

new Zip(options.clientPackage).extractAllTo(options.root + "/versions", true)

I changed the extract route of root to versions and works fine.

Pierce01 commented 2 years ago

clientPackage is meant to download other files as well. If you want to have client package download a custom version, you need to have a folder called versions, then have the custom version folder inside that folder.

GamesX50 commented 2 years ago

Okay, thx very much for the help.