Check for skill being trained while ticking change (#4469)

Check for skill being actually trained while ticking XP change in XP tracker plugin.
This commit is contained in:
Levi
2018-07-25 04:02:58 -05:00
committed by Tomas Slusny
parent 23c13c1d53
commit 08db5091af

View File

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