Merge pull request #1335 from Ryex/fix/gh-1322-old-zip-mods-in-wrong-place

fix(flame install): don't assume .zip is a resource pack. default to mod
This commit is contained in:
seth
2023-07-14 00:16:43 -04:00
committed by Sefa Eyeoglu
parent 79537f2948
commit 7926170073
3 changed files with 12 additions and 14 deletions

View File

@ -76,13 +76,8 @@ bool Flame::File::parseFromObject(const QJsonObject& obj, bool throw_on_blocked
// It is also optional
type = File::Type::SingleFile;
if (fileName.endsWith(".zip")) {
// this is probably a resource pack
targetFolder = "resourcepacks";
} else {
// this is probably a mod, dunno what else could modpacks download
targetFolder = "mods";
}
targetFolder = "mods";
// get the hash
hash = QString();
auto hashes = Json::ensureArray(obj, "hashes");