mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-29 09:15:49 +00:00
NOISSUE do not write 'time' and 'releaseTime' when they are null
This commit is contained in:
parent
ec6204e447
commit
f56983e5ca
@ -232,8 +232,14 @@ void MojangVersionFormat::writeVersionProperties(const VersionFile* in, QJsonObj
|
||||
writeString(out, "minecraftArguments", in->minecraftArguments);
|
||||
writeString(out, "type", in->type);
|
||||
writeString(out, "assets", in->assets);
|
||||
if(!in->m_releaseTime.isNull())
|
||||
{
|
||||
writeString(out, "releaseTime", timeToS3Time(in->m_releaseTime));
|
||||
}
|
||||
if(!in->m_updateTime.isNull())
|
||||
{
|
||||
writeString(out, "time", timeToS3Time(in->m_updateTime));
|
||||
}
|
||||
if(in->minimumLauncherVersion != -1)
|
||||
{
|
||||
out.insert("minimumLauncherVersion", in->minimumLauncherVersion);
|
||||
|
Loading…
Reference in New Issue
Block a user