mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-25 19:42:53 +08:00
Fix language switching prompt and save
This commit is contained in:
parent
f92e839ad1
commit
a26afe7d47
@ -35,8 +35,9 @@ public final class LanguageCommand implements CommandHandler {
|
|||||||
if (sender != null) {
|
if (sender != null) {
|
||||||
var locale = Locale.forLanguageTag(langCode);
|
var locale = Locale.forLanguageTag(langCode);
|
||||||
actualLangCode = Utils.getLanguageCode(locale);
|
actualLangCode = Utils.getLanguageCode(locale);
|
||||||
sender.getAccount().setLocale(locale);
|
var account = sender.getAccount();
|
||||||
return;
|
account.setLocale(locale);
|
||||||
|
account.save();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var languageInst = Grasscutter.getLanguage(langCode);
|
var languageInst = Grasscutter.getLanguage(langCode);
|
||||||
|
Loading…
Reference in New Issue
Block a user