Fix duplicate variable name bug
I should've picked a better variable name last commit.main
parent
65da13f4f7
commit
8b635781bf
4
init.lua
4
init.lua
|
@ -67,8 +67,8 @@ end)
|
||||||
-- Send achievements
|
-- Send achievements
|
||||||
if awards then
|
if awards then
|
||||||
awards.register_on_unlock(function(name, def)
|
awards.register_on_unlock(function(name, def)
|
||||||
local name = def.name or def.title or "N.A."
|
local award_name = def.name or def.title or "N.A."
|
||||||
matrix.send(http_api, name .. "has made the achievement [" .. name .. "]")
|
matrix.send(http_api, name .. "has made the achievement [" .. award_name .. "]")
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue