diff --git a/api/src/main/java/com/velocitypowered/api/playersettings/PlayerSettings.java b/api/src/main/java/com/velocitypowered/api/playersettings/PlayerSettings.java index 0bed204c3..0c04ac44d 100644 --- a/api/src/main/java/com/velocitypowered/api/playersettings/PlayerSettings.java +++ b/api/src/main/java/com/velocitypowered/api/playersettings/PlayerSettings.java @@ -4,7 +4,7 @@ import java.util.Locale; public interface PlayerSettings { - Locale getLocate(); + Locale getLocale(); byte getViewDistance(); diff --git a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientSettingsWrapper.java b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientSettingsWrapper.java index cd3d5e0ec..854e6c7d8 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientSettingsWrapper.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientSettingsWrapper.java @@ -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 }