From 3f738369862a2f187ea3a53cdd3e8448df19a904 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sun, 14 Aug 2016 04:52:46 -0400 Subject: update unified inventory and boost_carts --- boost_cart/init.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'boost_cart') diff --git a/boost_cart/init.lua b/boost_cart/init.lua index 2298516..42d3533 100644 --- a/boost_cart/init.lua +++ b/boost_cart/init.lua @@ -24,7 +24,8 @@ end dofile(boost_cart.modpath.."/functions.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") end @@ -279,7 +280,7 @@ function boost_cart.cart:on_step(dtime) new_acc = vector.multiply(dir, acc) end - if mesecon then + if HAVE_MESECONS_ENABLED then boost_cart:signal_detector_rail(vector.round(pos)) end -- cgit v1.2.3