Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/kotlin/xyz/poeschl/slowwave/commands/Token.kt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Token(private val enabled: Boolean, private val useCountPerToken: Int, pri

val currentCount = tokenCounter.getOrDefault(token, 0)
val update = currentCount - 1
if (update >= 0) {
if (update > 0) {
tokenCounter[token] = update
return true
} else {
Expand Down