Doors: Remove ability to rotate doors with screwdrivers
authorparamat <mat.gregory@virginmedia.com>
Wed, 28 Sep 2016 21:09:50 +0000 (22:09 +0100)
committerparamat <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

index 73a73a136e13f7ee779d982857e5ebc3fe9cd02a..7a8006c6b39abaf892f20a7ac96e906f04409b72 100644 (file)
@@ -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