Updated slug for url

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2023-06-22 20:04:06 +03:00
parent da6f846a49
commit 3c9c39cb89
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318

View File

@ -97,7 +97,7 @@ QString ExportModsToStringTask(QList<Mod*> mods, QString lineTemplate)
if (meta != nullptr) {
url = (meta->provider == ModPlatform::ResourceProvider::FLAME ? "https://www.curseforge.com/minecraft/mc-mods/"
: "https://modrinth.com/mod/") +
meta->project_id.toString();
meta->slug.remove(".pw.toml");
}
auto ver = mod->version();
if (ver.isEmpty() && meta != nullptr)