From accd34abf45ce93f46df9135ad6d78a95bbb19e1 Mon Sep 17 00:00:00 2001 From: Mrbrutal Date: Tue, 29 Jul 2014 15:22:12 +0200 Subject: [PATCH] Fixed "minecraft" folder not found bug. --- src/main/java/com/skcraft/launcher/Instance.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/skcraft/launcher/Instance.java b/src/main/java/com/skcraft/launcher/Instance.java index cc88c96..9fa4a02 100644 --- a/src/main/java/com/skcraft/launcher/Instance.java +++ b/src/main/java/com/skcraft/launcher/Instance.java @@ -68,7 +68,11 @@ public class Instance implements Comparable { */ @JsonIgnore public File getContentDir() { - return new File(dir, "minecraft"); + File dir = new File(this.dir, "minecraft"); + if (!dir.exists()) { + dir.mkdirs(); + } + return dir; } /**