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
db039cc3
Commit
db039cc3
authored
Jun 11, 2022
by
zhaodice
Committed by
GitHub
Jun 11, 2022
Browse files
make sure towerData is not null (#1240)
* make sure towerData is not null * Update Player.java * add notice
parent
eb170bcb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/game/player/Player.java
View file @
db039cc3
...
...
@@ -191,6 +191,7 @@ public class Player {
this
.
nameCardList
=
new
HashSet
<>();
this
.
flyCloakList
=
new
HashSet
<>();
this
.
costumeList
=
new
HashSet
<>();
this
.
towerData
=
new
TowerData
();
this
.
unlockedForgingBlueprints
=
new
HashSet
<>();
this
.
activeForges
=
new
ArrayList
<>();
...
...
@@ -483,6 +484,10 @@ public class Player {
}
public
TowerData
getTowerData
()
{
if
(
towerData
==
null
){
// because of mistake, null may be saved as storage at some machine, this if can be removed in future
towerData
=
new
TowerData
();
}
return
towerData
;
}
...
...
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