Fix crash when using list_awards

This commit is contained in:
Wuzzy 2020-03-31 21:42:31 +02:00
parent 1c7d3dd261
commit a3785d7240
1 changed files with 2 additions and 2 deletions

View File

@ -216,8 +216,8 @@ minetest.register_chatcommand("list_awards", {
minetest.chat_send_player(name, "Your awards:")
for _, str in pairs(awards.players[name].unlocked) do
local title = awards.def[award].title
minetest.chat_send_player(name, title)
local title = awards.def[str].title
minetest.chat_send_player(name, "" .. title)
end
end,
})