mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-24 03:05:49 +01:00
Fix locale object getter, closes #1113
This commit is contained in:
parent
be13a00386
commit
87a64c3f3e
@ -443,6 +443,6 @@ public final class UserConnection implements ProxiedPlayer
|
||||
@Override
|
||||
public Locale getLocale()
|
||||
{
|
||||
return ( locale == null && settings != null ) ? locale = Locale.forLanguageTag( settings.getLocale() ) : locale;
|
||||
return ( locale == null && settings != null ) ? locale = Locale.forLanguageTag( settings.getLocale().replaceAll( "_", "-" ) ) : locale;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user