will moving to assets fix it?

This commit is contained in:
Chayapak 2023-05-04 08:49:02 +07:00
parent 5ebde826ba
commit 16b8582732
4 changed files with 2 additions and 2 deletions

View file

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

View file

Before

Width:  |  Height:  |  Size: 453 B

After

Width:  |  Height:  |  Size: 453 B

View file

@ -15,7 +15,7 @@
}, },
"license": "CC0-1.0", "license": "CC0-1.0",
"icon": "assets/modid/icon.png", "icon": "assets/chipmunkmod/icon.png",
"environment": "*", "environment": "*",
"entrypoints": { "entrypoints": {