forked from minetest/minetest_game
Make doors not depend on screwdriver.
This commit is contained in:
parent
2824562dc9
commit
46c6154444
@ -1 +1,2 @@
|
||||
default
|
||||
screwdriver?
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user