Skip to content

Commit 697b39d

Browse files
committedDec 12, 2014
Only allow rotating nodes that could be dug
1 parent 2b7ca68 commit 697b39d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

Diff for: ‎mods/screwdriver/init.lua

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ local function screwdriver_handler(itemstack, user, pointed_thing, mode)
3232
return
3333
end
3434

35+
if ndef.can_dig and not ndef.can_dig(pos, user) then
36+
return
37+
end
38+
3539
-- Set param2
3640
local n = node.param2
3741
local axisdir = math.floor(n / 4)

1 commit comments

Comments
 (1)

entuland commented on Feb 7, 2019

@entuland

I'm not sure I see the reason for this additional check still in place - this check prevents rotating stuff like filled chests, which can be perfectly done without any problem whatsoever - what are the nodes that can't be dug and shouldn't be rotated?

Please sign in to comment.