diff options
author | FaceDeer <derksenmobile@gmail.com> | 2017-01-05 20:58:36 -0700 |
---|---|---|
committer | FaceDeer <derksenmobile@gmail.com> | 2017-01-05 20:58:36 -0700 |
commit | e9e8e202f9a9d8be64ec331873791d03413bde41 (patch) | |
tree | fe2ed42c89cb6123f1670f50d309e86a68d6f05a /node_controllers.lua | |
parent | 253ff1281571b888cfbfeb1a719eb98a1b5b98de (diff) |
Add logging of various events.
Diffstat (limited to 'node_controllers.lua')
-rw-r--r-- | node_controllers.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/node_controllers.lua b/node_controllers.lua index c897502..4c521da 100644 --- a/node_controllers.lua +++ b/node_controllers.lua @@ -190,7 +190,7 @@ local execute_cycle = function(pos, clicker) end --move the array - digtron.move_digtron(facing, layout.all, layout.extents, nodes_dug) + digtron.move_digtron(facing, layout.all, layout.extents, nodes_dug, clicker:get_player_name()) local oldpos = {x=pos.x, y=pos.y, z=pos.z} pos = digtron.find_new_pos(pos, facing) meta = minetest.get_meta(pos) @@ -246,6 +246,7 @@ local execute_cycle = function(pos, clicker) local node_to_dig, whether_to_dig = nodes_dug:pop() while node_to_dig ~= nil do if whether_to_dig == true then + minetest.log("action", string.format("%s uses Digtron to dig %s at (%d, %d, %d)", clicker:get_player_name(), minetest.get_node(node_to_dig).name, node_to_dig.x, node_to_dig.y, node_to_dig.z)) minetest.remove_node(node_to_dig) end -- all of the digtron's nodes wind up in nodes_dug, so this is an ideal place to stick |