1
0
mirror of https://github.com/SKCraft/Launcher.git synced 2024-11-27 12:46:22 +01:00

Merge pull request #25 from Mrbrutal/master

Fixed "minecraft" folder not found bug.
This commit is contained in:
Albert Pham 2014-07-29 10:49:12 -07:00
commit 2018a6814b

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;
}
/**