mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Remove hardcoded limit for parent skill levels when calculating child skill level
This commit is contained in:
parent
5b19e2e9d2
commit
5f21efb1cd
@ -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