From 1ece792e2b0240f544adc9092aeb4814bc240c23 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Wed, 18 May 2016 16:35:28 +1000 Subject: [PATCH] Create parent directory for bo3 --- .../main/java/com/intellectualcrafters/plot/util/BO3Handler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/util/BO3Handler.java b/Core/src/main/java/com/intellectualcrafters/plot/util/BO3Handler.java index 604309166..7ec5f8f0a 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/util/BO3Handler.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/util/BO3Handler.java @@ -251,6 +251,7 @@ public class BO3Handler { try { File bo3File = bo3.getFile(); bo3File.createNewFile(); + bo3File.getParentFile().mkdirs(); try (FileOutputStream fos = new FileOutputStream(bo3File)) { write(fos, plot, bo3); }