mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01: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 #2037
This commit is contained in:
parent
53a34c12d2
commit
3403aef37d
@ -494,12 +494,10 @@ 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
|
||||||
if (!skill.getPermissions(player)) {
|
if (!skill.getPermissions(player)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user