Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
a26afe7d
Commit
a26afe7d
authored
May 10, 2022
by
Secretboy-SMR
Committed by
Melledy
May 10, 2022
Browse files
Fix language switching prompt and save
parent
f92e839a
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/command/commands/LanguageCommand.java
View file @
a26afe7d
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment