mirror of
https://github.com/joe7575/lumberjack.git
synced 2024-11-19 21:43:46 +01: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
|
||||
return true
|
||||
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)
|
||||
if is_lumberjack(digger, tree_points, sapl_points) then
|
||||
if chopper_tool(digger) then
|
||||
|
Loading…
Reference in New Issue
Block a user