There was an error while loading. Please reload this page.
1 parent 8f62bc1 commit 2a8e32eCopy full SHA for 2a8e32e
1 file changed
src/main/java/dev/latvian/mods/kubejs/util/JsonIO.java
@@ -71,6 +71,9 @@ public static void write(Path path, @Nullable JsonElement json) throws IOExcepti
71
if (json == null || json instanceof JsonNull) {
72
Files.deleteIfExists(path);
73
} else {
74
+ if (Files.notExists(path.getParent())) {
75
+ Files.createDirectories(path.getParent());
76
+ }
77
Files.writeString(path, JsonUtils.toPrettyString(json));
78
}
79
0 commit comments