diff options
author | Jeija <norrepli@gmail.com> | 2012-12-08 12:13:45 +0100 |
---|---|---|
committer | Jeija <norrepli@gmail.com> | 2012-12-08 12:13:45 +0100 |
commit | 12206ac190375c2e3b360ad1b2a0b892b4544d7f (patch) | |
tree | ce137b79bbeecbc03de12c9347d953ea67e306bd /mesecons_compatibility/init.lua | |
parent | 3926c46293e1ecafcc79bfef080f6b4fae20f0da (diff) |
Add support for the preinstalled wooden door in minetest_game
Diffstat (limited to 'mesecons_compatibility/init.lua')
-rw-r--r-- | mesecons_compatibility/init.lua | 11 |
1 files changed, 11 insertions, 0 deletions
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) |