Make doors not depend on screwdriver.

This commit is contained in:
Novatux 2015-05-14 14:24:14 +02:00
parent 2824562dc9
commit 46c6154444
2 changed files with 2 additions and 1 deletions

View File

@ -1 +1,2 @@
default default
screwdriver?

View File

@ -435,7 +435,7 @@ function doors.register_trapdoor(name, def)
minetest.set_node(pos, {name = newname, param1 = node.param1, param2 = node.param2}) minetest.set_node(pos, {name = newname, param1 = node.param1, param2 = node.param2})
end end
def.on_rotate = screwdriver.rotate_simple def.on_rotate = minetest.get_modpath("screwdriver") and screwdriver.rotate_simple
-- Common trapdoor configuration -- Common trapdoor configuration
def.drawtype = "nodebox" def.drawtype = "nodebox"