Fix console spam for not existing old keys

This commit is contained in:
GeorgH93 2018-07-25 23:28:06 +02:00
parent 358ddf1b77
commit 7c1db6199e
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8

View File

@ -57,7 +57,7 @@ public static void updateConfig(YAML oldYAML, YAML newYAML)
}
try
{
newYAML.set(key, oldYAML.getString(oldKey));
if(oldYAML.isSet(oldKey)) newYAML.set(key, oldYAML.getString(oldKey));
}
catch(Exception e)
{