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
aaf77770
Commit
aaf77770
authored
May 31, 2022
by
Melledy
Browse files
Fix players not setting their nickname properly after the opening cutscene
parent
f5347cf9
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/server/packet/recv/HandlerSetPlayerBornDataReq.java
View file @
aaf77770
...
@@ -48,6 +48,7 @@ public class HandlerSetPlayerBornDataReq extends PacketHandler {
...
@@ -48,6 +48,7 @@ public class HandlerSetPlayerBornDataReq extends PacketHandler {
// Get player object
// Get player object
Player
player
=
session
.
getPlayer
();
Player
player
=
session
.
getPlayer
();
player
.
setNickname
(
req
.
getNickName
());
// Create avatar
// Create avatar
if
(
player
.
getAvatars
().
getAvatarCount
()
==
0
)
{
if
(
player
.
getAvatars
().
getAvatarCount
()
==
0
)
{
...
...
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