diff options
Diffstat (limited to 'mesecons_compatibility')
-rw-r--r-- | mesecons_compatibility/depends.txt | 1 | ||||
-rw-r--r-- | mesecons_compatibility/init.lua | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/mesecons_compatibility/depends.txt b/mesecons_compatibility/depends.txt new file mode 100644 index 0000000..acaa924 --- /dev/null +++ b/mesecons_compatibility/depends.txt @@ -0,0 +1 @@ +mesecons diff --git a/mesecons_compatibility/init.lua b/mesecons_compatibility/init.lua new file mode 100644 index 0000000..dcf94de --- /dev/null +++ b/mesecons_compatibility/init.lua @@ -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) |