Merge Only allow rotating nodes that could be dug

This commit is contained in:
LeMagnesium 2014-12-14 23:26:23 +01:00
parent 9677e75c97
commit 1f419342a7
1 changed files with 4 additions and 0 deletions

View File

@ -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)