From: Novatux Date: Thu, 14 May 2015 12:24:14 +0000 (+0200) Subject: Make doors not depend on screwdriver. X-Git-Tag: 0.4.13~69 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=46c61544442dc1e983eeff6bacda6f87912645f7;p=oweals%2Fminetest_game.git Make doors not depend on screwdriver. --- diff --git a/mods/doors/depends.txt b/mods/doors/depends.txt index 4ad96d51..5e28beeb 100644 --- a/mods/doors/depends.txt +++ b/mods/doors/depends.txt @@ -1 +1,2 @@ default +screwdriver? diff --git a/mods/doors/init.lua b/mods/doors/init.lua index b762751a..3dbe15ee 100644 --- a/mods/doors/init.lua +++ b/mods/doors/init.lua @@ -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"