mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-11-11 14:20:50 +01:00
Don't include child skills in these loops. Fixes #577
This commit is contained in:
@@ -20,7 +20,7 @@ public abstract class Hardcore {
|
||||
int totalLost = 0;
|
||||
|
||||
for (SkillType skillType : SkillType.values()) {
|
||||
if (skillType.equals(SkillType.ALL)) {
|
||||
if (skillType.equals(SkillType.ALL) || skillType.isChildSkill()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public abstract class Hardcore {
|
||||
int totalStolen = 0;
|
||||
|
||||
for (SkillType skillType : SkillType.values()) {
|
||||
if (skillType.equals(SkillType.ALL)) {
|
||||
if (skillType.equals(SkillType.ALL) || skillType.isChildSkill()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user