finally fix default config issue (mabe)

i didn't test it but
blackilykat found the fix ig
This commit is contained in:
Chayapak 2023-06-03 17:26:42 +07:00
parent 3530238408
commit 2d60606de3
2 changed files with 1 additions and 1 deletions

View file

@ -50,7 +50,7 @@ public class ChipmunkMod implements ModInitializer {
final File file = CONFIG_FILE;
if (!file.exists()) {
InputStream is = ClassLoader.getSystemClassLoader().getResourceAsStream("default_config.json");
InputStream is = ChipmunkMod.class.getClassLoader().getResourceAsStream("default_config.json");
BufferedReader reader = new BufferedReader(new InputStreamReader(is));
final StringBuilder sb = new StringBuilder();