mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-09-23 13:07:54 +02:00
Create parent directory for bo3
This commit is contained in:
@@ -251,6 +251,7 @@ public class BO3Handler {
|
|||||||
try {
|
try {
|
||||||
File bo3File = bo3.getFile();
|
File bo3File = bo3.getFile();
|
||||||
bo3File.createNewFile();
|
bo3File.createNewFile();
|
||||||
|
bo3File.getParentFile().mkdirs();
|
||||||
try (FileOutputStream fos = new FileOutputStream(bo3File)) {
|
try (FileOutputStream fos = new FileOutputStream(bo3File)) {
|
||||||
write(fos, plot, bo3);
|
write(fos, plot, bo3);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user