Fix NullPointerException with Player#playerProgress

This commit is contained in:
KingRainbow44
2023-05-01 22:54:00 -04:00
parent d2f9f6f05b
commit 864298f3b1
3 changed files with 14 additions and 9 deletions

View File

@@ -255,7 +255,7 @@ public class Player {
this.unlockedSceneAreas = new HashMap<>();
this.unlockedScenePoints = new HashMap<>();
this.chatEmojiIdList = new ArrayList<>();
this.playerProgress = new PlayerProgress(this);
this.playerProgress = new PlayerProgress();
this.activeQuestTimers = new HashSet<>();
this.attackResults = new LinkedBlockingQueue<>();
@@ -1296,6 +1296,8 @@ public class Player {
this.loadBattlePassManager();
this.getAvatars().postLoad(); // Needs to be called after inventory is handled
this.getPlayerProgress().setPlayer(this); // Add reference to the player.
}
public void onPlayerBorn() {