9
0
mirror of https://github.com/Auxilor/EcoSkills.git synced 2026-01-02 13:56:38 +00:00

Undid change

This commit is contained in:
Auxilor
2021-10-05 19:09:09 +01:00
parent 2d42baf5b0
commit b82a09427c
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ abstract class Stat(
val key: NamespacedKey
val uuid: UUID
open val config: Config
val config: Config
lateinit var name: String
init {

View File

@@ -13,7 +13,7 @@ class StatAttackSpeed : Stat(
val modifier = AttributeModifier(
this.uuid,
this.name,
(this.config.getDouble("percent-faster-per-level") * player.getStatLevel(this)) / 100.0,
(1 * player.getStatLevel(this)) / 100.0,
AttributeModifier.Operation.MULTIPLY_SCALAR_1
)
val instance = player.getAttribute(Attribute.GENERIC_ATTACK_SPEED) ?: return