xptracker: fix "Reset others" resetting overall xp

Fixes #8296
This commit is contained in:
Adam
2019-03-23 20:54:06 -04:00
parent d8d6e5e5f1
commit b8503e0326

View File

@@ -254,7 +254,6 @@ public class XpTrackerPlugin extends Plugin
int currentXp = client.getSkillExperience(skill);
xpState.resetSkill(skill, currentXp);
xpPanel.resetSkill(skill);
xpPanel.updateTotal(xpState.getTotalSnapshot());
}
/**
@@ -265,7 +264,8 @@ public class XpTrackerPlugin extends Plugin
{
for (Skill s : Skill.values())
{
if (skill != s)
// Overall is not reset from resetting individual skills
if (skill != s && s != Skill.OVERALL)
{
resetSkillState(s);
}