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:
commit
2018a6814b
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user