make the resources folder match the new mod id

This commit is contained in:
Oth3r 2024-08-07 12:49:51 -05:00
commit dde387cc3e
4 changed files with 4 additions and 3 deletions

View file

@ -80,12 +80,12 @@ public class LangReader {
public static void loadLanguageFile() { public static void loadLanguageFile() {
ClassLoader classLoader = Sit.class.getClassLoader(); ClassLoader classLoader = Sit.class.getClassLoader();
try { try {
InputStream inputStream = classLoader.getResourceAsStream("assets/sit/lang/"+ FileData.getServerConfig().getLang() +".json"); InputStream inputStream = classLoader.getResourceAsStream("assets/sit-oth3r/lang/" + FileData.getServerConfig().getLang() +".json");
// if the input stream is null, the language file wasn't found // if the input stream is null, the language file wasn't found
if (inputStream == null) { if (inputStream == null) {
// try loading the default language file // try loading the default language file
inputStream = classLoader.getResourceAsStream("assets/sit/lang/"+ new ServerConfig().getLang() +".json"); inputStream = classLoader.getResourceAsStream("assets/sit-oth3r/lang/" + new ServerConfig().getLang() +".json");
Data.LOGGER.error("COULDN'T LOAD THE LANGUAGE FILE. RESETTING TO en_us."); Data.LOGGER.error("COULDN'T LOAD THE LANGUAGE FILE. RESETTING TO en_us.");
} }

View file

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 9.6 KiB

Before After
Before After

View file

@ -54,4 +54,5 @@
"key.toggle": "Toggle Sitting", "key.toggle": "Toggle Sitting",
"key.sit": "Sit" "key.sit": "Sit"
} }

View file

@ -12,7 +12,7 @@
"sources": "https://github.com/Oth3r/Sit" "sources": "https://github.com/Oth3r/Sit"
}, },
"license": "LGPL-3.0-only", "license": "LGPL-3.0-only",
"icon": "assets/sit/icon.png", "icon": "assets/sit-oth3r/icon.png",
"environment": "*", "environment": "*",
"entrypoints": { "entrypoints": {
"main": [ "main": [