mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-15 23:59:21 -04:00
[Bug fix] data loss on game directory migration
This commit is contained in:
parent
55107efed4
commit
dd25bcc3f9
@ -46,14 +46,14 @@ public class PojavMigrator
|
||||
File bugGameDir = new File(Tools.DIR_GAME_NEW + "/.minecraft");
|
||||
File oldGameDir = new File(Tools.DIR_GAME_OLD);
|
||||
boolean moved = bugGameDir.exists() && bugGameDir.isDirectory();
|
||||
|
||||
/*
|
||||
if (oldGameDir.exists() && oldGameDir.isDirectory() && moved) {
|
||||
command("rm -rf " + oldGameDir.getAbsolutePath());
|
||||
}
|
||||
|
||||
*/
|
||||
if (moved) {
|
||||
command("mv " + bugGameDir.getAbsolutePath() + " " + Tools.DIR_GAME_OLD);
|
||||
command("rm -rf " + Tools.DIR_GAME_HOME);
|
||||
command("rm -rf " + Tools.DIR_GAME_HOME + "/*");
|
||||
command("mv " + Tools.DIR_GAME_OLD + " " + Tools.DIR_GAME_HOME + "/");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user