9
0
mirror of https://github.com/Auxilor/EcoSkills.git synced 2026-01-03 06:12:21 +00:00

Fixed level 50 being impossible

This commit is contained in:
Auxilor
2021-11-16 20:23:17 +00:00
parent 325d006b41
commit 0c351f0512

View File

@@ -241,7 +241,7 @@ abstract class Skill(
fun getExpForLevel(level: Int): Int {
val req = this.plugin.configYml.getInts("skills.level-xp-requirements")
return if (req.size <= level) {
return if (req.size < level) {
Int.MAX_VALUE
} else {
req[level - 1]