mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Merge pull request #2663 from MinelinkNetwork/fix-child-skill-level
Remove hardcoded limit for parent skill levels when calculating child…
This commit is contained in:
commit
aaa69adb0c
@ -355,7 +355,7 @@ public class PlayerProfile {
|
|||||||
int sum = 0;
|
int sum = 0;
|
||||||
|
|
||||||
for (SkillType parent : parents) {
|
for (SkillType parent : parents) {
|
||||||
sum += Math.min(getSkillLevel(parent), 1000);
|
sum += Math.min(getSkillLevel(parent), parent.getMaxLevel());
|
||||||
}
|
}
|
||||||
|
|
||||||
return sum / parents.size();
|
return sum / parents.size();
|
||||||
|
Loading…
Reference in New Issue
Block a user