Reproduce:
Create new profile, set basedir to "." (or any other dir where a .minecraft dir does not exist), select this profile, try to launch.
This can be fixed by adding the following:
if (!file.exists()) { file.getParentFile().mkdirs(); file.createNewFile(); }
before XMLUtil.writeXml(doc, file); in UpdateCache.write().
Reproduce: Create new profile, set basedir to
"."
(or any other dir where a.minecraft
dir does not exist), select this profile, try to launch.This can be fixed by adding the following:
if (!file.exists()) { file.getParentFile().mkdirs(); file.createNewFile(); }
beforeXMLUtil.writeXml(doc, file);
inUpdateCache.write()
.