mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-30 21:17:53 +01:00
Fix Player#getLocale
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
3e386a1491
commit
ffbc8e5f27
@ -2057,7 +2057,9 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
||||
|
||||
@Override
|
||||
public Locale getLocale() {
|
||||
return settings.locale == null ? null : Locale.forLanguageTag(settings.locale);
|
||||
final String locale = settings.locale;
|
||||
if (locale == null) return null;
|
||||
return Locale.forLanguageTag(locale.replace("_", "-"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user