Ignore level goals which have been passed (#3805)

Fixes runelite/runelite#3639
This commit is contained in:
Jordan
2018-07-01 10:05:45 +00:00
committed by Tomas Slusny
parent abce07bcc7
commit 35fe66d960

View File

@@ -210,7 +210,7 @@ class XpStateSingle
xpGained = currentXp - startXp; xpGained = currentXp - startXp;
// Determine XP goals // Determine XP goals
if (goalStartXp <= 0) if (goalStartXp <= 0 || currentXp > goalEndXp)
{ {
startLevelExp = Experience.getXpForLevel(Experience.getLevelForXp(currentXp)); startLevelExp = Experience.getXpForLevel(Experience.getLevelForXp(currentXp));
} }
@@ -253,4 +253,4 @@ class XpStateSingle
.timeTillGoal(getTimeTillLevel()) .timeTillGoal(getTimeTillLevel())
.build(); .build();
} }
} }