Fix duplicate variable name bug

I should've picked a better variable name last commit.
main
Bram van den Heuvel 2024-03-08 14:18:00 +01:00
parent 65da13f4f7
commit 8b635781bf
1 changed files with 2 additions and 2 deletions

View File

@ -67,8 +67,8 @@ end)
-- Send achievements
if awards then
awards.register_on_unlock(function(name, def)
local name = def.name or def.title or "N.A."
matrix.send(http_api, name .. "has made the achievement [" .. name .. "]")
local award_name = def.name or def.title or "N.A."
matrix.send(http_api, name .. "has made the achievement [" .. award_name .. "]")
end)
end