9
0
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:
Auxilor
2021-09-02 17:28:34 +01:00
parent bec7b883c7
commit 275173b0c2

View File

@@ -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
}
}