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:
36a78c8
)
Doors: Remove ability to rotate doors with screwdrivers
author
paramat
<mat.gregory@virginmedia.com>
Wed, 28 Sep 2016 21:09:50 +0000
(22:09 +0100)
committer
paramat
<mat.gregory@virginmedia.com>
Fri, 30 Sep 2016 01:44:24 +0000
(
02:44
+0100)
Rotating doors with screwdrivers causes too many issues to be worth it.
mods/doors/init.lua
patch
|
blob
|
history
diff --git
a/mods/doors/init.lua
b/mods/doors/init.lua
index 73a73a136e13f7ee779d982857e5ebc3fe9cd02a..7a8006c6b39abaf892f20a7ac96e906f04409b72 100644
(file)
--- a/
mods/doors/init.lua
+++ b/
mods/doors/init.lua
@@
-366,7
+366,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 =
screwdriver and screwdriver.rotate_simple or
false
+ def.on_rotate = false
if def.protected then
def.can_dig = can_dig_door