needed checks marked

This commit is contained in:
Joachim Stolberg 2018-04-17 12:30:26 +02:00 committed by GitHub
parent 97a36e2c04
commit cdcb206eeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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