projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c83ea0
)
Doors: Allow the screwdriver to rotate doors around y-axis.
author
Tim
<t4im@users.noreply.github.com>
Tue, 2 Aug 2016 18:10:57 +0000
(20:10 +0200)
committer
Tim
<t4im@users.noreply.github.com>
Fri, 5 Aug 2016 10:34:46 +0000
(12:34 +0200)
Keep other axis' disabled to prevent the hidden placeholder node to become irremovable to players.
mods/doors/init.lua
patch
|
blob
|
history
diff --git
a/mods/doors/init.lua
b/mods/doors/init.lua
index 3e67ef44c482c08928971b1697245c51c8e2dd17..b4cf90ff12b39d45dfce63a12a3e0f09b421df15 100644
(file)
--- a/
mods/doors/init.lua
+++ b/
mods/doors/init.lua
@@
-374,9
+374,7
@@
function doors.register(name, def)
minetest.remove_node({x = pos.x, y = pos.y + 1, z = pos.z})
nodeupdate({x = pos.x, y = pos.y + 1, z = pos.z})
end
- def.on_rotate = function(pos, node, user, mode, new_param2)
- return false
- end
+ def.on_rotate = screwdriver and screwdriver.rotate_simple or false
if def.protected then
def.can_dig = can_dig_door