Delete LWJGL3 folder after migration to avoid conflicts

This commit is contained in:
artdeell
2021-01-12 19:49:52 +03:00
parent a29740f46e
commit fea2e0e920

View File

@@ -34,7 +34,7 @@ public class PojavMigrator
}
}
public static boolean migrateGameDir() {
public static boolean migrateGameDir() throws IOException {
File oldGameDir = new File(Tools.DIR_GAME_OLD);
boolean moved = oldGameDir.exists() && oldGameDir.isDirectory();
@@ -45,6 +45,7 @@ public class PojavMigrator
*/
if(moved) {
oldGameDir.renameTo(new File(Tools.DIR_GAME_NEW + "/"));
FileUtils.deleteDirectory(new File(Tools.DIR_GAME_NEW + "/lwjgl3"));
}
return moved;
}