Fix undeclared global variable "mesecon"

This commit is contained in:
Stefan Sauer 2016-08-08 14:25:54 +02:00 committed by SmallJoker
parent eb6a833b66
commit f3bc9d795d

View File

@ -24,7 +24,7 @@ end
dofile(boost_cart.modpath.."/functions.lua")
dofile(boost_cart.modpath.."/rails.lua")
if mesecon then
if minetest.global_exists(mesecon) then
dofile(boost_cart.modpath.."/detector.lua")
end