mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-08-13 01:35:27 +02: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