This commit is contained in:
Leymooo 2018-08-25 18:02:19 +03:00
parent 1b4c537c81
commit 09153ae620
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import java.util.Locale;
public interface PlayerSettings {
Locale getLocate();
Locale getLocale();
byte getViewDistance();

View File

@ -19,7 +19,7 @@ public class ClientSettingsWrapper implements PlayerSettings {
}
@Override
public Locale getLocate() {
public Locale getLocale() {
return locale == null ? locale = Locale.forLanguageTag(settings.getLocale().replaceAll("_", "-")) : locale; //Will throw error if locale not found
}