Auto create launcher_profiles.json if necessary

This fixes Fabric and OptiFine installer errors.
This commit is contained in:
Duy Tran Khanh committed 2021-02-14 06:24:42 +07:00
1 parent 098fcf03f8
commit 49ea01d7e6
2 files changed
+12

No files matched your search

@@ -26,6 +26,9 @@ public class PLaunchApp {
new File(Tools.DIR_ACCOUNT_NEW).mkdirs();
if (!new File(mcDir, "config_ver.txt").exists()) {
Tools.write(mcDir.getAbsolutePath() + "/config_ver.txt", "1.16.5");
Tools.write(mcDir.getAbsolutePath() + "/launcher_profiles.json",
Tools.read(Tools.DIR_DATA + "/launcher_profiles.json"));
}
} catch (IOException e) {
e.printStackTrace();