Fix potential crash when few loot items are registered
[oweals/minetest_game.git] / mods / carts / init.lua
1
2 carts = {}
3 carts.modpath = minetest.get_modpath("carts")
4 carts.railparams = {}
5
6 -- Maximal speed of the cart in m/s (min = -1)
7 carts.speed_max = 7
8 -- Set to -1 to disable punching the cart from inside (min = -1)
9 carts.punch_speed_max = 5
10 -- Maximal distance for the path correction (for dtime peaks)
11 carts.path_distance_max = 3
12
13
14 dofile(carts.modpath.."/functions.lua")
15 dofile(carts.modpath.."/rails.lua")
16 dofile(carts.modpath.."/cart_entity.lua")