Make doors not depend on screwdriver.
authorNovatux <nathanael.courant@laposte.net>
Thu, 14 May 2015 12:24:14 +0000 (14:24 +0200)
committerNovatux <nathanael.courant@laposte.net>
Thu, 14 May 2015 12:24:14 +0000 (14:24 +0200)
mods/doors/depends.txt
mods/doors/init.lua

index 4ad96d51599fb734101f6229f6c1a8a509bd6255..5e28beeb6de06e037494aac97dfe1848a3ae01f4 100644 (file)
@@ -1 +1,2 @@
 default
+screwdriver?
index b762751affedb44a27b959648d02b64d891d3200..3dbe15ee0157bdcecaee62f8bb1d14e971d633ff 100644 (file)
@@ -435,7 +435,7 @@ function doors.register_trapdoor(name, def)
                minetest.set_node(pos, {name = newname, param1 = node.param1, param2 = node.param2})
        end
 
-       def.on_rotate = screwdriver.rotate_simple
+       def.on_rotate = minetest.get_modpath("screwdriver") and screwdriver.rotate_simple
 
        -- Common trapdoor configuration
        def.drawtype = "nodebox"