GH-1860 fix old jarmods

Names were not set for the libraries, making them return invalid things
This commit is contained in:
Petr Mrázek 2017-04-22 19:38:28 +02:00
parent 8ace5fa91d
commit 249baf6fcf

View File

@ -287,7 +287,7 @@ LibraryPtr OneSixVersionFormat::plusJarModFromJson(const QJsonObject &libObj, co
// just make up something unique on the spot for the library name.
auto uuid = QUuid::createUuid();
QString id = uuid.toString().remove('{').remove('}');
out->setRawName(GradleSpecifier("org.multimc.jarmods:" + id + ":1"));
// filename override is the old name
out->setFilename(libObj.value("name").toString());