merge
This commit is contained in:
@@ -74,6 +74,12 @@ public enum Baritone {
|
|||||||
registerBehavior(Map.INSTANCE);
|
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");
|
this.dir = new File(Minecraft.getMinecraft().gameDir, "baritone");
|
||||||
if (!Files.exists(dir.toPath())) {
|
if (!Files.exists(dir.toPath())) {
|
||||||
try {
|
try {
|
||||||
@@ -118,5 +124,7 @@ public enum Baritone {
|
|||||||
return Baritone.INSTANCE.settings; // yolo
|
return Baritone.INSTANCE.settings; // yolo
|
||||||
}
|
}
|
||||||
|
|
||||||
public final File getDir() { return this.dir; }
|
public final File getDir() {
|
||||||
|
return this.dir;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user