From 16b858273203f3301a31f141964b745dfc51e870 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Thu, 4 May 2023 08:49:02 +0700 Subject: [PATCH] will moving to assets fix it? --- .../java/land/chipmunk/chipmunkmod/ChipmunkMod.java | 2 +- .../{ => assets/chipmunkmod}/default_config.json | 0 .../assets/{modid => chipmunkmod}/icon.png | Bin src/main/resources/fabric.mod.json | 2 +- 4 files changed, 2 insertions(+), 2 deletions(-) rename src/main/resources/{ => assets/chipmunkmod}/default_config.json (100%) rename src/main/resources/assets/{modid => chipmunkmod}/icon.png (100%) diff --git a/src/main/java/land/chipmunk/chipmunkmod/ChipmunkMod.java b/src/main/java/land/chipmunk/chipmunkmod/ChipmunkMod.java index 357c2ca..ffaca19 100644 --- a/src/main/java/land/chipmunk/chipmunkmod/ChipmunkMod.java +++ b/src/main/java/land/chipmunk/chipmunkmod/ChipmunkMod.java @@ -41,7 +41,7 @@ public class ChipmunkMod implements ModInitializer { final File file = new File("config/chipmunkmod.json"); 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)); final StringBuilder sb = new StringBuilder(); diff --git a/src/main/resources/default_config.json b/src/main/resources/assets/chipmunkmod/default_config.json similarity index 100% rename from src/main/resources/default_config.json rename to src/main/resources/assets/chipmunkmod/default_config.json diff --git a/src/main/resources/assets/modid/icon.png b/src/main/resources/assets/chipmunkmod/icon.png similarity index 100% rename from src/main/resources/assets/modid/icon.png rename to src/main/resources/assets/chipmunkmod/icon.png diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 9d5e143..3edf9ad 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -15,7 +15,7 @@ }, "license": "CC0-1.0", - "icon": "assets/modid/icon.png", + "icon": "assets/chipmunkmod/icon.png", "environment": "*", "entrypoints": {