summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-04-05 16:21:44 +0100
committerrubenwardy <rw@rubenwardy.com>2018-04-05 16:21:44 +0100
commit4764568f6d9fd36c5d5429a9ccaf0a975402e491 (patch)
tree0a6f3c331e8c2e072cb3fc9d3ef9e45a075c0b39
parentee4931ae6efbc063431069768bbb37f44478f6db (diff)
Fix off-by-one error in counted_key award types
-rw-r--r--api.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/api.lua b/api.lua
index 76ab33d..39f7f09 100644
--- a/api.lua
+++ b/api.lua
@@ -243,7 +243,7 @@ function awards.register_trigger(tname, tdef)
return
end
- if current > entry.target then
+ if current >= entry.target then
return entry.award
end
end)