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 { ...@@ -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);
......
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