1
0
mirror of https://github.com/SKCraft/Launcher.git synced 2025-01-21 21:31:32 +01:00

Fixed "minecraft" folder not found bug.

This commit is contained in:
Mrbrutal 2014-07-29 15:22:12 +02:00
parent 7f5e8672cf
commit accd34abf4

View File

@ -68,7 +68,11 @@ public class Instance implements Comparable<Instance> {
*/
@JsonIgnore
public File getContentDir() {
return new File(dir, "minecraft");
File dir = new File(this.dir, "minecraft");
if (!dir.exists()) {
dir.mkdirs();
}
return dir;
}
/**