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
c8a7aea7
Commit
c8a7aea7
authored
May 24, 2022
by
ShiroSaki
Committed by
Melledy
May 23, 2022
Browse files
Fix new account can't load codex datas
parent
9e8b6eff
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/game/player/Player.java
View file @
c8a7aea7
...
...
@@ -187,7 +187,7 @@ public class Player {
this
.
birthday
=
new
PlayerBirthday
();
this
.
rewardedLevels
=
new
HashSet
<>();
this
.
moonCardGetTimes
=
new
HashSet
<>();
this
.
codex
=
new
PlayerCodex
();
this
.
codex
=
new
PlayerCodex
(
this
);
this
.
shopLimit
=
new
ArrayList
<>();
this
.
expeditionInfo
=
new
HashMap
<>();
...
...
@@ -208,7 +208,7 @@ public class Player {
this
.
signature
=
""
;
this
.
teamManager
=
new
TeamManager
(
this
);
this
.
birthday
=
new
PlayerBirthday
();
this
.
codex
=
new
PlayerCodex
();
this
.
codex
=
new
PlayerCodex
(
this
);
this
.
setProperty
(
PlayerProperty
.
PROP_PLAYER_LEVEL
,
1
);
this
.
setProperty
(
PlayerProperty
.
PROP_IS_SPRING_AUTO_USE
,
1
);
this
.
setProperty
(
PlayerProperty
.
PROP_SPRING_AUTO_USE_PERCENT
,
50
);
...
...
@@ -1174,6 +1174,9 @@ public class Player {
if
(
this
.
getTeamManager
()
==
null
)
{
this
.
teamManager
=
new
TeamManager
(
this
);
}
if
(
this
.
getCodex
()
==
null
)
{
this
.
codex
=
new
PlayerCodex
(
this
);
}
if
(
this
.
getProfile
().
getUid
()
==
0
)
{
this
.
getProfile
().
syncWithCharacter
(
this
);
}
...
...
src/main/java/emu/grasscutter/game/player/PlayerCodex.java
View file @
c8a7aea7
...
...
@@ -39,6 +39,11 @@ public class PlayerCodex {
this
.
unlockedReliquarySuitCodex
=
new
HashSet
<>();
}
public
PlayerCodex
(
Player
player
){
this
();
this
.
player
=
player
;
}
public
void
setPlayer
(
Player
player
)
{
this
.
player
=
player
;
}
...
...
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