This commit is contained in:
Leijurv
2018-08-22 15:00:10 -07:00

View File

@@ -74,6 +74,12 @@ public enum Baritone {
registerBehavior(Map.INSTANCE);
}
this.dir = new File(Minecraft.getMinecraft().gameDir, "baritone");
if (!Files.exists(dir.toPath())) {
try {
Files.createDirectories(dir.toPath());
} catch (IOException ignored) {}
}
this.dir = new File(Minecraft.getMinecraft().gameDir, "baritone");
if (!Files.exists(dir.toPath())) {
try {
@@ -118,5 +124,7 @@ public enum Baritone {
return Baritone.INSTANCE.settings; // yolo
}
public final File getDir() { return this.dir; }
public final File getDir() {
return this.dir;
}
}