From cdcb206eebde3f6b195c484d7abe0fe06131356e Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Tue, 17 Apr 2018 12:30:26 +0200 Subject: [PATCH] needed checks marked --- init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init.lua b/init.lua index b2855d5..1dd10b8 100644 --- a/init.lua +++ b/init.lua @@ -56,10 +56,12 @@ local function add_steps(pos, digger) local facedir = minetest.dir_to_facedir(digger:get_look_dir(), false) local dir = minetest.facedir_to_dir((facedir + 2) % 4) local newpos = vector.add(pos, dir) + -- TODO: check for other items!!! minetest.add_node(newpos, {name="lumberjack:step", param2=facedir}) end local function on_punch(pos, node, puncher) + -- TODO: check for area privs!!! if chopper_tool(puncher) then add_steps(pos, puncher) end