xp tracker: fix intermediate markers not showing for xp based goal ends

This commit is contained in:
Hydrox6
2021-07-02 12:42:32 +01:00
committed by Adam
parent 44bb046cdd
commit 2f388c6d59

View File

@@ -278,7 +278,7 @@ class XpInfoBox extends JPanel
{
final List<Integer> positions = new ArrayList<>();
for (int level = xpSnapshotSingle.getStartLevel() + 1; level < xpSnapshotSingle.getEndLevel(); level++)
for (int level = xpSnapshotSingle.getStartLevel() + 1; level <= xpSnapshotSingle.getEndLevel(); level++)
{
double relativeStartExperience = Experience.getXpForLevel(level) - xpSnapshotSingle.getStartGoalXp();
double relativeEndExperience = xpSnapshotSingle.getEndGoalXp() - xpSnapshotSingle.getStartGoalXp();