1
0
mirror of https://github.com/SmallJoker/boost_cart.git synced 2024-12-25 18:30:19 +01:00

Fix mesecon variable bug caused by f3bc9d7

This commit is contained in:
SmallJoker 2016-08-12 20:44:49 +02:00
parent 4391d2356f
commit 7d6132e748

View File

@ -24,7 +24,8 @@ end
dofile(boost_cart.modpath.."/functions.lua") dofile(boost_cart.modpath.."/functions.lua")
dofile(boost_cart.modpath.."/rails.lua") dofile(boost_cart.modpath.."/rails.lua")
if minetest.global_exists(mesecon) then local HAVE_MESECONS_ENABLED = minetest.global_exists("mesecon")
if HAVE_MESECONS_ENABLED then
dofile(boost_cart.modpath.."/detector.lua") dofile(boost_cart.modpath.."/detector.lua")
end end
@ -279,7 +280,7 @@ function boost_cart.cart:on_step(dtime)
new_acc = vector.multiply(dir, acc) new_acc = vector.multiply(dir, acc)
end end
if mesecon then if HAVE_MESECONS_ENABLED then
boost_cart:signal_detector_rail(vector.round(pos)) boost_cart:signal_detector_rail(vector.round(pos))
end end