mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-23 16:16:46 +00:00
Fix language switching prompt and save
This commit is contained in:
parent
4efdc767ae
commit
2969abc20e
@ -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