From d3d267f68b11e78f7f1eb2af9c513638668694e0 Mon Sep 17 00:00:00 2001 From: mazes-80 <> Date: Fri, 9 Sep 2022 04:24:39 +0200 Subject: [PATCH] compatibility: allow digtron mod to dig --- init.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/init.lua b/init.lua index ba6a6a5..ef31caa 100644 --- a/init.lua +++ b/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