Skip to content
Snippets Groups Projects
Commit 697b39d4 authored by PilzAdam's avatar PilzAdam
Browse files

Only allow rotating nodes that could be dug

parent 2b7ca688
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment