Fix load order (#2057)

This commit is contained in:
Thoronium 2023-02-15 17:31:33 -07:00 committed by GitHub
parent 11351d9866
commit d1c7ced0ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1164,13 +1164,12 @@ public class Player {
// Load from db
this.getAvatars().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.getFriendsList().loadFromDatabase();
this.getMailHandler().loadFromDatabase();
this.getQuestManager().loadFromDatabase();
this.loadBattlePassManager();
}
public void onLogin() {