Skip to content

Commit

Permalink
Make doors not depend on screwdriver.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekdohibs committed May 14, 2015
1 parent 2824562 commit 46c6154
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions mods/doors/depends.txt
@@ -1 +1,2 @@
default
screwdriver?
2 changes: 1 addition & 1 deletion mods/doors/init.lua
Expand Up @@ -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"
Expand Down

0 comments on commit 46c6154

Please sign in to comment.