summaryrefslogtreecommitdiff
path: root/mesecons_compatibility/init.lua
blob: dcf94dea23be123b65ce61c8b25acef56cb79fe8 (plain)
1
2
3
4
5
6
7
8
9
10
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)