mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-22 18:56:15 +00:00
Fix load order (#2057)
This commit is contained in:
parent
11351d9866
commit
d1c7ced0ef
@ -1164,13 +1164,12 @@ public class Player {
|
|||||||
// Load from db
|
// Load from db
|
||||||
this.getAvatars().loadFromDatabase();
|
this.getAvatars().loadFromDatabase();
|
||||||
this.getInventory().loadFromDatabase();
|
this.getInventory().loadFromDatabase();
|
||||||
|
this.loadBattlePassManager(); // Call before avatar postLoad to avoid null pointer
|
||||||
this.getAvatars().postLoad(); // Needs to be called after inventory is handled
|
this.getAvatars().postLoad(); // Needs to be called after inventory is handled
|
||||||
|
|
||||||
this.getFriendsList().loadFromDatabase();
|
this.getFriendsList().loadFromDatabase();
|
||||||
this.getMailHandler().loadFromDatabase();
|
this.getMailHandler().loadFromDatabase();
|
||||||
this.getQuestManager().loadFromDatabase();
|
this.getQuestManager().loadFromDatabase();
|
||||||
|
|
||||||
this.loadBattlePassManager();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onLogin() {
|
public void onLogin() {
|
||||||
|
Loading…
Reference in New Issue
Block a user