Try to read 'authorList' in mcmod.info for authors first, fall back to deprecated 'authors' if nothing is found.
This commit is contained in:
parent
20eb5ac3cc
commit
7cb76788bd
@ -175,7 +175,10 @@ void Mod::ReadMCModInfo(QByteArray contents)
|
||||
}
|
||||
}
|
||||
m_description = firstObj.value("description").toString();
|
||||
QJsonArray authors = firstObj.value("authors").toArray();
|
||||
QJsonArray authors = firstObj.value("authorList").toArray();
|
||||
if (authors.size() == 0)
|
||||
authors = firstObj.value("authors").toArray();
|
||||
|
||||
if (authors.size() == 0)
|
||||
m_authors = "";
|
||||
else if (authors.size() >= 1)
|
||||
|
Loading…
Reference in New Issue
Block a user