mirror of
https://github.com/joe7575/lumberjack.git
synced 2024-07-07 08:25:21 +02:00
minor bug fixed
This commit is contained in:
parent
8e5af36324
commit
8b50942cde
2
init.lua
2
init.lua
@ -63,7 +63,7 @@ local function add_steps(pos, digger)
|
||||
end
|
||||
end
|
||||
|
||||
local function on_punch(pos, node, puncher)
|
||||
local function on_punch(pos, node, puncher, pointed_thing)
|
||||
if chopper_tool(puncher) and node.param1 == 0 then -- grown tree?
|
||||
if not minetest.is_protected(pos, puncher:get_player_name()) then
|
||||
add_steps(pos, puncher)
|
||||
|
Loading…
Reference in New Issue
Block a user