diff options
author | Rubenwardy <anjayward@gmail.com> | 2013-02-22 19:37:21 +0000 |
---|---|---|
committer | Rubenwardy <anjayward@gmail.com> | 2013-02-22 19:37:21 +0000 |
commit | 2942ae602b1262748e6903a3bd33078879060f7e (patch) | |
tree | 652a06b2c107eccbfdca6cac24faf5612b6cd98b /init.lua | |
parent | 6a982c03be4e52001e0f9b472b05ea27d274e615 (diff) |
fix list_awards error
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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, }) |