1
0
mirror of https://github.com/SmallJoker/boost_cart.git synced 2024-12-26 02:40:18 +01:00

fixes : Undeclared global variable "mesecon" accessed at /home/ensonic/.minetest/mods/boost_cart/init.lua:27

See http://dev.minetest.net/minetest.global_exists
This commit is contained in:
Stefan Sauer 2016-08-08 14:25:54 +02:00 committed by GitHub
parent eb6a833b66
commit 6bd4c7bd35

View File

@ -24,7 +24,7 @@ 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 mesecon then if minetest.global_exists(mesecon) then
dofile(boost_cart.modpath.."/detector.lua") dofile(boost_cart.modpath.."/detector.lua")
end end