From d1c7ced0ef431242c452bd082dbeebcd4d9e2338 Mon Sep 17 00:00:00 2001 From: Thoronium <107363768+NotThorny@users.noreply.github.com> Date: Wed, 15 Feb 2023 17:31:33 -0700 Subject: [PATCH] Fix load order (#2057) --- src/main/java/emu/grasscutter/game/player/Player.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/emu/grasscutter/game/player/Player.java b/src/main/java/emu/grasscutter/game/player/Player.java index ea7bc46b8..ab0c6aaae 100644 --- a/src/main/java/emu/grasscutter/game/player/Player.java +++ b/src/main/java/emu/grasscutter/game/player/Player.java @@ -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() {