Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Oxyopiia authored Feb 8, 2025
1 parent 93f1961 commit 28194ba
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ enum class ItemAbility(
}

fun onSound() {
if(!this.isOnCooldown()) {
val debounceTime = lastClicked.timeDelta()
Debugger.ITEMABILITY.debug("§eReceived onSound as &&b$itemName")
if (this.isOnCooldown()) return

val debounceTime = lastClicked.timeDelta()
Debugger.ITEMABILITY.debug("§eReceived onSound as &&b$itemName")

if (debounceTime < 500.milliseconds) {
activate()
}
if (debounceTime < 500.milliseconds) {
activate()
}
}

Expand Down

0 comments on commit 28194ba

Please sign in to comment.