mirror of
https://gitlab.com/rubenwardy/awards.git
synced 2024-12-26 18:50:42 +01:00
fix list_awards error
This commit is contained in:
parent
6a982c03be
commit
2942ae602b
5
init.lua
5
init.lua
@ -65,9 +65,8 @@ minetest.register_chatcommand("list_awards", {
|
|||||||
func = function(name, param)
|
func = function(name, param)
|
||||||
minetest.chat_send_player(name, "Your awards:");
|
minetest.chat_send_player(name, "Your awards:");
|
||||||
|
|
||||||
for i=1,# player_data[name]['unlocked'] do
|
for _, str in pairs(player_data[name].unlocked) do
|
||||||
print(player_data[name]['unlocked'][i])
|
minetest.chat_send_player(name, str);
|
||||||
minetest.chat_send_player(name, ">> "..player_data[name]['unlocked'][i]);
|
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user