Try to read 'authorList' in mcmod.info for authors first, fall back to deprecated 'authors' if nothing is found.

This commit is contained in:
Sky 2014-03-30 05:16:31 +01:00
parent 20eb5ac3cc
commit 7cb76788bd

View File

@ -175,7 +175,10 @@ void Mod::ReadMCModInfo(QByteArray contents)
} }
} }
m_description = firstObj.value("description").toString(); 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) if (authors.size() == 0)
m_authors = ""; m_authors = "";
else if (authors.size() >= 1) else if (authors.size() >= 1)