diff options
author | SHsuperCM <shsupercm@gmail.com> | 2022-03-13 16:07:46 +0200 |
---|---|---|
committer | SHsuperCM <shsupercm@gmail.com> | 2022-03-13 16:07:46 +0200 |
commit | 08168af5926129733b8f766b6a6eb24b6167fe01 (patch) | |
tree | 5d2477ba20fecf13daf7ddeaa83cefda0be1976f /defaults | |
parent | 6470d4bdf3c42b116bee5dd581800e0042fe39d1 (diff) | |
download | CITResewn-08168af5926129733b8f766b6a6eb24b6167fe01.tar.gz CITResewn-08168af5926129733b8f766b6a6eb24b6167fe01.tar.bz2 CITResewn-08168af5926129733b8f766b6a6eb24b6167fe01.zip |
Fixed crash from non-existent config folder
Fixes #114
Diffstat (limited to 'defaults')
-rw-r--r-- | defaults/src/main/java/shcm/shsupercm/fabric/citresewn/defaults/config/CITResewnDefaultsConfig.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/defaults/src/main/java/shcm/shsupercm/fabric/citresewn/defaults/config/CITResewnDefaultsConfig.java b/defaults/src/main/java/shcm/shsupercm/fabric/citresewn/defaults/config/CITResewnDefaultsConfig.java index 791205b..41126d2 100644 --- a/defaults/src/main/java/shcm/shsupercm/fabric/citresewn/defaults/config/CITResewnDefaultsConfig.java +++ b/defaults/src/main/java/shcm/shsupercm/fabric/citresewn/defaults/config/CITResewnDefaultsConfig.java @@ -33,6 +33,7 @@ public class CITResewnDefaultsConfig { Gson gson = new Gson(); JsonWriter writer = null; try { + FILE.getParentFile().mkdirs(); writer = gson.newJsonWriter(new FileWriter(FILE)); writer.setIndent(" "); |