From 08168af5926129733b8f766b6a6eb24b6167fe01 Mon Sep 17 00:00:00 2001 From: SHsuperCM Date: Sun, 13 Mar 2022 16:07:46 +0200 Subject: Fixed crash from non-existent config folder Fixes #114 --- .../fabric/citresewn/defaults/config/CITResewnDefaultsConfig.java | 1 + 1 file changed, 1 insertion(+) (limited to 'defaults/src/main/java/shcm/shsupercm') 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(" "); -- cgit