diff --git a/src/main/java/net/brokenmoon/afloydironchest/IronChestMain.java b/src/main/java/net/brokenmoon/afloydironchest/IronChestMain.java index f6ca5c8..84f9db0 100644 --- a/src/main/java/net/brokenmoon/afloydironchest/IronChestMain.java +++ b/src/main/java/net/brokenmoon/afloydironchest/IronChestMain.java @@ -102,6 +102,9 @@ public class IronChestMain implements ModInitializer { InputStream in; OutputStream out; try { + File configDir = new File("config"); + if (!configDir.exists()) + configDir.mkdir(); in = IronChestMain.class.getClassLoader().getResourceAsStream("assets/ironchest/config.toml"); out = new FileOutputStream(config); byte[] buffer = new byte[1024];