1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-25 20:16:13 +01:00

We need to reset customLocale when going back to EN

This commit is contained in:
Zrips 2020-04-25 12:15:35 +03:00
parent 0e6a8afbb7
commit fa1531f763
2 changed files with 2 additions and 4 deletions

View File

@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>Jobs</groupId>
<artifactId>jobs</artifactId>
<version>4.15.4</version>
<version>4.15.8</version>
<name>Jobs</name>
<url>http://maven.apache.org</url>

View File

@ -45,9 +45,7 @@ public class Language {
*/
public void reload() {
String ls = Jobs.getGCManager().localeString.toLowerCase();
if (!ls.equals("en")) {
customlocale = new YmlMaker(plugin, "locale/messages_" + ls + ".yml").getConfig();
}
customlocale = new YmlMaker(plugin, "locale/messages_" + ls + ".yml").getConfig();
enlocale = new YmlMaker(plugin, "locale/messages_en.yml").getConfig();
if (customlocale == null)
customlocale = enlocale;