From 09153ae620634dcdfdc95a27beae1e3ad512e941 Mon Sep 17 00:00:00 2001 From: Leymooo Date: Sat, 25 Aug 2018 18:02:19 +0300 Subject: [PATCH] oops --- .../com/velocitypowered/api/playersettings/PlayerSettings.java | 2 +- .../proxy/connection/client/ClientSettingsWrapper.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }