1
0
mirror of https://github.com/SmallJoker/boost_cart.git synced 2024-12-25 02:10:19 +01:00
This commit is contained in:
SmallJoker 2015-11-01 20:12:16 +01:00
parent ddb6801b5c
commit 1b53ebd8e6

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
minetest.swap_node(pos, {name = "boost_cart:detectorrail", param2=node.param2})
end
mesecon.receptor_off(pos, mesecon_rules)
mesecon.receptor_off(pos, mesecons_rules)
end
end
@ -19,7 +19,7 @@ function boost_cart:signal_detector_rail(pos)
if node.name == "boost_cart:detectorrail" then
minetest.swap_node(pos, {name = "boost_cart:detectorrail_on", param2=node.param2})
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)
end