1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-06-20 16:01:26 +02:00

Don't display child skills on scoreboards

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

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

@ -490,10 +490,9 @@ public class ScoreboardWrapper {
// Calculate power level here
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);
if (!skill.isChildSkill())
powerLevel += level;
// TODO: Verify that this is what we want - calculated in power level but not displayed