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
a2c4895c
Commit
a2c4895c
authored
Oct 25, 2022
by
AnimeGitB
Browse files
Make Player lazyload correct Account (should fix #1900)
parent
a5579368
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/game/player/Player.java
View file @
a2c4895c
...
@@ -314,7 +314,7 @@ public class Player {
...
@@ -314,7 +314,7 @@ public class Player {
public
Account
getAccount
()
{
public
Account
getAccount
()
{
if
(
this
.
account
==
null
)
if
(
this
.
account
==
null
)
this
.
account
=
DatabaseHelper
.
getAccountById
(
Integer
.
toString
(
this
.
id
)
);
this
.
account
=
DatabaseHelper
.
getAccountById
(
this
.
accountId
);
return
this
.
account
;
return
this
.
account
;
}
}
...
...
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