|
|
@ -102,6 +102,9 @@ public class IronChestMain implements ModInitializer {
|
|
|
|
InputStream in;
|
|
|
|
InputStream in;
|
|
|
|
OutputStream out;
|
|
|
|
OutputStream out;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|
|
|
|
File configDir = new File("config");
|
|
|
|
|
|
|
|
if (!configDir.exists())
|
|
|
|
|
|
|
|
configDir.mkdir();
|
|
|
|
in = IronChestMain.class.getClassLoader().getResourceAsStream("assets/ironchest/config.toml");
|
|
|
|
in = IronChestMain.class.getClassLoader().getResourceAsStream("assets/ironchest/config.toml");
|
|
|
|
out = new FileOutputStream(config);
|
|
|
|
out = new FileOutputStream(config);
|
|
|
|
byte[] buffer = new byte[1024];
|
|
|
|
byte[] buffer = new byte[1024];
|
|
|
|