From 1f419342a7f711636efb6f7afb0c758206f1af76 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Sun, 14 Dec 2014 23:26:23 +0100 Subject: [PATCH] Merge Only allow rotating nodes that could be dug --- mods/screwdriver/init.lua | 4 ++++ 1 file changed, 4 insertions(+) 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)