mirror of
https://github.com/PaperMC/Velocity.git
synced 2025-01-18 14:44:07 +08:00
oops
This commit is contained in:
parent
1b4c537c81
commit
09153ae620
@ -4,7 +4,7 @@ import java.util.Locale;
|
||||
|
||||
public interface PlayerSettings {
|
||||
|
||||
Locale getLocate();
|
||||
Locale getLocale();
|
||||
|
||||
byte getViewDistance();
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user