forked from virt-mirrors/Sit
make the resources folder match the new mod id
This commit is contained in:
parent
3322260798
commit
dde387cc3e
4 changed files with 4 additions and 3 deletions
|
@ -80,12 +80,12 @@ public class LangReader {
|
|||
public static void loadLanguageFile() {
|
||||
ClassLoader classLoader = Sit.class.getClassLoader();
|
||||
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 (inputStream == null) {
|
||||
// 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.");
|
||||
}
|
||||
|
||||
|
|
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 9.6 KiB |
|
@ -54,4 +54,5 @@
|
|||
|
||||
"key.toggle": "Toggle Sitting",
|
||||
"key.sit": "Sit"
|
||||
|
||||
}
|
|
@ -12,7 +12,7 @@
|
|||
"sources": "https://github.com/Oth3r/Sit"
|
||||
},
|
||||
"license": "LGPL-3.0-only",
|
||||
"icon": "assets/sit/icon.png",
|
||||
"icon": "assets/sit-oth3r/icon.png",
|
||||
"environment": "*",
|
||||
"entrypoints": {
|
||||
"main": [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue