Skip to content
Browse files

Only allow rotating nodes that could be dug

  • Loading branch information
PilzAdam committed Dec 12, 2014
1 parent 2b7ca68 commit 697b39d40dfe7a36b4487ddbb0ba3eb758df4714
Showing with 4 additions and 0 deletions.
  1. +4 −0 mods/screwdriver/init.lua
@@ -32,6 +32,10 @@ local function screwdriver_handler(itemstack, user, pointed_thing, mode)

if ndef.can_dig and not ndef.can_dig(pos, user) then

-- Set param2
local n = node.param2
local axisdir = math.floor(n / 4)

1 comment on commit 697b39d


This comment has been minimized.

Copy link

@entuland entuland commented on 697b39d Feb 7, 2019

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.