Bug fix: config_ver.txt always set to 1.16.5 (for #16)

This commit is contained in:
Duy Tran Khanh authored and GitHub committed 2021-02-01 20:43:32 +07:00
1 parent 012371d990
commit 2378e13fbc
1 file changed
+3 -1
@@ -34,7 +34,9 @@ public class PLaunchApp {
try {
File mcDir = new File("/var/mobile/Documents/minecraft");
mcDir.mkdirs();
Tools.write(mcDir.getAbsolutePath() + "/config_ver.txt", "1.16.5");
if (!new File(mcDir, "config_ver.txt").exists()) {
Tools.write(mcDir.getAbsolutePath() + "/config_ver.txt", "1.16.5");
}
} catch (Throwable th) {
th.printStackTrace();
}