From a3785d7240be0b495d87a68528d588c7990a24e7 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 31 Mar 2020 21:42:31 +0200 Subject: [PATCH] Fix crash when using list_awards --- mods/awards/api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/awards/api.lua b/mods/awards/api.lua index 6cda883..ff73d7c 100644 --- a/mods/awards/api.lua +++ b/mods/awards/api.lua @@ -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, })