mirror of
https://github.com/Oth3r/Sit.git
synced 2025-09-20 00:13:21 +02:00
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() {
|
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.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 9.6 KiB |
|
@ -54,4 +54,5 @@
|
||||||
|
|
||||||
"key.toggle": "Toggle Sitting",
|
"key.toggle": "Toggle Sitting",
|
||||||
"key.sit": "Sit"
|
"key.sit": "Sit"
|
||||||
|
|
||||||
}
|
}
|
|
@ -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": [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue