Merge pull request #592 from flowln/technic

Use empty string when version is null in the Technic pack manifest
This commit is contained in:
timoreo22 2022-05-20 10:56:42 +02:00 committed by GitHub
commit 1e6df7eec0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ void loadPack(Pack& v, QJsonObject& obj)
static void loadPackBuildMod(PackBuildMod& b, QJsonObject& obj) static void loadPackBuildMod(PackBuildMod& b, QJsonObject& obj)
{ {
b.name = Json::requireString(obj, "name"); b.name = Json::requireString(obj, "name");
b.version = Json::requireString(obj, "version"); b.version = Json::ensureString(obj, "version", "");
b.md5 = Json::requireString(obj, "md5"); b.md5 = Json::requireString(obj, "md5");
b.url = Json::requireString(obj, "url"); b.url = Json::requireString(obj, "url");
} }