Add config dir creation.

main
Astoria 2 years ago
parent a335674b36
commit 5f80a147fb

@ -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];

Loading…
Cancel
Save