mirror of
https://github.com/joe7575/lumberjack.git
synced 2024-07-07 08:25:21 +02:00
Merge pull request #17 from mazes-80/digtron
compatibility: allow digtron mod to dig
This commit is contained in:
commit
05a8525061
6
init.lua
6
init.lua
@ -289,6 +289,12 @@ local function can_dig(pos, digger)
|
|||||||
if node.param1 ~= 0 then
|
if node.param1 ~= 0 then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
-- compatibility with digtron mod
|
||||||
|
local dbg_info = debug.getinfo(2)
|
||||||
|
if dbg_info.source:sub(-17) == "/digtron/util.lua"
|
||||||
|
and dbg_info.name == "execute_dig" then
|
||||||
|
return true
|
||||||
|
end
|
||||||
local tree_points, sapl_points = get_points(digger)
|
local tree_points, sapl_points = get_points(digger)
|
||||||
if is_lumberjack(digger, tree_points, sapl_points) then
|
if is_lumberjack(digger, tree_points, sapl_points) then
|
||||||
if chopper_tool(digger) then
|
if chopper_tool(digger) then
|
||||||
|
Loading…
Reference in New Issue
Block a user