forked from minetest-mods/mesecons
Add support for the preinstalled wooden door in minetest_game
This commit is contained in:
parent
3926c46293
commit
12206ac190
1
mesecons_compatibility/depends.txt
Normal file
1
mesecons_compatibility/depends.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
mesecons
|
11
mesecons_compatibility/init.lua
Normal file
11
mesecons_compatibility/init.lua
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
minetest.after(0,
|
||||||
|
function ()
|
||||||
|
if minetest.registered_nodes["doors:door_wood_b_1"] then
|
||||||
|
mesecon:register_effector("doors:door_wood_b_1", "doors:door_wood_b_2")
|
||||||
|
mesecon:register_on_signal_change(function(pos, node)
|
||||||
|
if node.name == "doors:door_wood_b_2" or node.name == "doors:door_wood_b_1" then
|
||||||
|
minetest.registered_nodes[node.name].on_punch(pos, node)
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
end)
|
Loading…
Reference in New Issue
Block a user