1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-12-23 07:10:19 +01:00

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
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})
end
def.on_rotate = screwdriver.rotate_simple
def.on_rotate = minetest.get_modpath("screwdriver") and screwdriver.rotate_simple
-- Common trapdoor configuration
def.drawtype = "nodebox"