Skip to content

Commit

Permalink
Check for skill being trained while ticking change (runelite#4469)
Browse files Browse the repository at this point in the history
Check for skill being actually trained while ticking XP change in XP tracker plugin.
  • Loading branch information
Levi authored and deathbeam committed Jul 25, 2018
1 parent 23c13c1 commit 08db509
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,11 @@ boolean update(int currentXp, int goalStartXp, int goalEndXp)

public void tick(long delta)
{
// Don't tick skills that have not gained XP or have been reset.
if (xpGained <= 0)
{
return;
}
skillTime += delta;
}

Expand Down

0 comments on commit 08db509

Please sign in to comment.