From 46c61544442dc1e983eeff6bacda6f87912645f7 Mon Sep 17 00:00:00 2001 From: Novatux Date: Thu, 14 May 2015 14:24:14 +0200 Subject: [PATCH] Make doors not depend on screwdriver. --- mods/doors/depends.txt | 1 + mods/doors/init.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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" -- 2.25.1