This commit is contained in:
SmallJoker 2015-11-01 20:12:16 +01:00
parent ddb6801b5c
commit 1b53ebd8e6
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ function boost_cart:turnoff_detector_rail(pos)
if node.name == "boost_cart:detectorrail_on" then --has not been dug if node.name == "boost_cart:detectorrail_on" then --has not been dug
minetest.swap_node(pos, {name = "boost_cart:detectorrail", param2=node.param2}) minetest.swap_node(pos, {name = "boost_cart:detectorrail", param2=node.param2})
end end
mesecon.receptor_off(pos, mesecon_rules) mesecon.receptor_off(pos, mesecons_rules)
end end
end end
@ -19,7 +19,7 @@ function boost_cart:signal_detector_rail(pos)
if node.name == "boost_cart:detectorrail" then if node.name == "boost_cart:detectorrail" then
minetest.swap_node(pos, {name = "boost_cart:detectorrail_on", param2=node.param2}) minetest.swap_node(pos, {name = "boost_cart:detectorrail_on", param2=node.param2})
end end
mesecon.receptor_on(pos, mesecon_rules) mesecon.receptor_on(pos, mesecons_rules)
minetest.after(0.5, boost_cart.turnoff_detector_rail, boost_cart, pos) minetest.after(0.5, boost_cart.turnoff_detector_rail, boost_cart, pos)
end end