Allow trapdoors to be rotated all ways.
authorAuke Kok <sofar@foo-projects.org>
Fri, 15 Jan 2016 08:35:07 +0000 (00:35 -0800)
committerparamat <mat.gregory@virginmedia.com>
Wed, 20 Jan 2016 22:17:13 +0000 (22:17 +0000)
There really is no reason to prevent rotation in trapdoors, I
expect this to be an oversight.

Trapdoors work perfectly well sideways, upside down and can
work like fences, gates and more. Most commonly, people will
want to put them in the top half of the node so they remain
flush with a floor.

mods/doors/init.lua

index 92b42669a2604549309518f413b52f84e8562817..c8b69c434fef60c065263e7ee7c09bfe4833dcf7 100644 (file)
@@ -451,8 +451,6 @@ function doors.register_trapdoor(name, def)
                minetest.swap_node(pos, {name = newname, param1 = node.param1, param2 = node.param2})
        end
 
-       def.on_rotate = minetest.get_modpath("screwdriver") and screwdriver.rotate_simple
-
        -- Common trapdoor configuration
        def.drawtype = "nodebox"
        def.paramtype = "light"