Don't display child skills on scoreboards

This fixes an issue where the scoreboard would not display properly
when using /mcstats or /inspect.

Fixes #2037
This commit is contained in:
TfT_02 2014-05-23 17:03:02 +02:00
parent c6be608e5e
commit d88afaf696

View File

@ -490,10 +490,9 @@ public class ScoreboardWrapper {
// Calculate power level here // Calculate power level here
int powerLevel = 0; int powerLevel = 0;
for (SkillType skill : SkillType.values()) { // Include child skills, but not in power level for (SkillType skill : SkillType.NON_CHILD_SKILLS) { // Don't include child skills, makes the list too long
int level = newProfile.getSkillLevel(skill); int level = newProfile.getSkillLevel(skill);
if (!skill.isChildSkill())
powerLevel += level; powerLevel += level;
// TODO: Verify that this is what we want - calculated in power level but not displayed // TODO: Verify that this is what we want - calculated in power level but not displayed