mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-10 17:33:02 +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) {
|
||||
var locale = Locale.forLanguageTag(langCode);
|
||||
actualLangCode = Utils.getLanguageCode(locale);
|
||||
sender.getAccount().setLocale(locale);
|
||||
return;
|
||||
var account = sender.getAccount();
|
||||
account.setLocale(locale);
|
||||
account.save();
|
||||
}
|
||||
else {
|
||||
var languageInst = Grasscutter.getLanguage(langCode);
|
||||
|
Loading…
Reference in New Issue
Block a user