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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user