Commit a26afe7d authored by Secretboy-SMR's avatar Secretboy-SMR Committed by Melledy
Browse files

Fix language switching prompt and save

parent f92e839a
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment