forked from Wuzzy/realtest_mt5
Fix crash when using list_awards
This commit is contained in:
parent
1c7d3dd261
commit
a3785d7240
|
@ -216,8 +216,8 @@ minetest.register_chatcommand("list_awards", {
|
||||||
minetest.chat_send_player(name, "Your awards:")
|
minetest.chat_send_player(name, "Your awards:")
|
||||||
|
|
||||||
for _, str in pairs(awards.players[name].unlocked) do
|
for _, str in pairs(awards.players[name].unlocked) do
|
||||||
local title = awards.def[award].title
|
local title = awards.def[str].title
|
||||||
minetest.chat_send_player(name, title)
|
minetest.chat_send_player(name, "• " .. title)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue