mirror of
https://github.com/Melledy/Grasscutter.git
synced 2025-02-03 22:15:32 +00:00
Make Player lazyload correct Account (should fix #1900)
This commit is contained in:
parent
a5579368bb
commit
a2c4895c16
@ -314,7 +314,7 @@ public class Player {
|
||||
|
||||
public Account getAccount() {
|
||||
if (this.account == null)
|
||||
this.account = DatabaseHelper.getAccountById(Integer.toString(this.id));
|
||||
this.account = DatabaseHelper.getAccountById(this.accountId);
|
||||
return this.account;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user