Fix incorrect name bug

main
Bram van den Heuvel 2024-03-07 12:39:39 +01:00
parent 8b0ce1265a
commit 65da13f4f7
1 changed files with 2 additions and 1 deletions

View File

@ -67,7 +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)
matrix.send(http_api, name .. "has made the achievement [" .. def.title .. "]") local name = def.name or def.title or "N.A."
matrix.send(http_api, name .. "has made the achievement [" .. name .. "]")
end) end)
end end