mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-04 23:47:59 +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
|
@Override
|
||||||
public Locale getLocale() {
|
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