mirror of
https://github.com/Auxilor/EcoSkills.git
synced 2026-01-04 15:41:36 +00:00
Fixed bad skill multiplier bug
This commit is contained in:
@@ -48,7 +48,7 @@ private fun Player.cacheSkillExperienceMultiplier(): Double {
|
||||
for (permissionAttachmentInfo in this.effectivePermissions) {
|
||||
val permission = permissionAttachmentInfo.permission
|
||||
if (permission.startsWith(prefix)) {
|
||||
return (permission.substring(permission.lastIndexOf(".") + 1).toDoubleOrNull() ?: 100.0 / 100) + 1
|
||||
return ((permission.substring(permission.lastIndexOf(".") + 1).toDoubleOrNull() ?: 100.0) / 100) + 1
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user