summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index 53a0081..56fd34b 100644
--- a/init.lua
+++ b/init.lua
@@ -65,9 +65,8 @@ minetest.register_chatcommand("list_awards", {
func = function(name, param)
minetest.chat_send_player(name, "Your awards:");
- for i=1,# player_data[name]['unlocked'] do
- print(player_data[name]['unlocked'][i])
- minetest.chat_send_player(name, ">> "..player_data[name]['unlocked'][i]);
+ for _, str in pairs(player_data[name].unlocked) do
+ minetest.chat_send_player(name, str);
end
end,
})