mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-04-30 13:11:41 -04:00
Only allow rotating nodes that could be dug
This commit is contained in:
parent
2b7ca68805
commit
697b39d40d
1 changed files with 4 additions and 0 deletions
|
@ -32,6 +32,10 @@ local function screwdriver_handler(itemstack, user, pointed_thing, mode)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if ndef.can_dig and not ndef.can_dig(pos, user) then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
-- Set param2
|
-- Set param2
|
||||||
local n = node.param2
|
local n = node.param2
|
||||||
local axisdir = math.floor(n / 4)
|
local axisdir = math.floor(n / 4)
|
||||||
|
|
Loading…
Add table
Reference in a new issue