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:
@@ -232,6 +232,11 @@ class XpStateSingle
|
|||||||
|
|
||||||
public void tick(long delta)
|
public void tick(long delta)
|
||||||
{
|
{
|
||||||
|
// Don't tick skills that have not gained XP or have been reset.
|
||||||
|
if (xpGained <= 0)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
skillTime += delta;
|
skillTime += delta;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user