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:
parent
7f5e8672cf
commit
accd34abf4
@ -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