dizzyd / mcdex

Minecraft Modpack Management
Apache License 2.0
75 stars 8 forks source link

Only look up slug on download fail #60

Open 1JackBlack1 opened 3 years ago

1JackBlack1 commented 3 years ago

Fixes #59

Currently when installing a modpack, before downloading the mod files it tries to obtain the slug. The only place this slug is then used is if it fails to find the download URL. To actually obtain the download URL, it uses the project ID and file ID provided by the modpack manifest. There is no need for the slug at all.

This causes the installation of a modpack to fail if the mod is not yet in the database, even though if it didn't look up the slug it would be able to determine the download URL and successfully install the modpack.