summaryrefslogtreecommitdiff
path: root/boost_cart/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'boost_cart/init.lua')
-rw-r--r--boost_cart/init.lua46
1 files changed, 0 insertions, 46 deletions
diff --git a/boost_cart/init.lua b/boost_cart/init.lua
deleted file mode 100644
index 755ab9d..0000000
--- a/boost_cart/init.lua
+++ /dev/null
@@ -1,46 +0,0 @@
-
-boost_cart = {}
-boost_cart.modpath = minetest.get_modpath("boost_cart")
-
-
-if not minetest.settings then
- error("[boost_cart] Your Minetest version is no longer supported."
- .. " (Version <= 0.4.15)")
-end
-
-local function getNum(setting)
- return tonumber(minetest.settings:get(setting))
-end
-
--- Maximal speed of the cart in m/s
-boost_cart.speed_max = getNum("boost_cart.speed_max") or 10
--- Set to -1 to disable punching the cart from inside
-boost_cart.punch_speed_max = getNum("boost_cart.punch_speed_max") or 7
--- Maximal distance for the path correction (for dtime peaks)
-boost_cart.path_distance_max = 3
-
-
--- Support for non-default games
-if not default.player_attached then
- default.player_attached = {}
-end
-
-minetest.after(1, function()
- boost_cart.old_player_model = type(player_api) ~= "table"
-end)
-
-dofile(boost_cart.modpath.."/functions.lua")
-dofile(boost_cart.modpath.."/rails.lua")
-
-if minetest.global_exists("mesecon") then
- dofile(boost_cart.modpath.."/detector.lua")
---else
--- minetest.register_alias("carts:powerrail", "boost_cart:detectorrail")
--- minetest.register_alias("carts:powerrail", "boost_cart:detectorrail_on")
-end
-
-boost_cart.mtg_compat = minetest.global_exists("carts") and carts.pathfinder
-if boost_cart.mtg_compat then
- minetest.log("action", "[boost_cart] Overwriting definitions of similar carts mod")
-end
-dofile(boost_cart.modpath.."/cart_entity.lua")