diff --git a/mods/screwdriver/init.lua b/mods/screwdriver/init.lua index 6d84f630..05596431 100755 --- a/mods/screwdriver/init.lua +++ b/mods/screwdriver/init.lua @@ -34,6 +34,10 @@ local function screwdriver_handler(itemstack, user, pointed_thing, mode) return end + if ndef.can_dig and not ndef.can_dig(pos, user) then + return + end + -- Set param2 local n = node.param2 local axisdir = math.floor(n / 4)