init.lua 547 B

1234567891011121314151617
  1. local mod_name = "dlxtrains_diesel_locomotives"
  2. dlxtrains_diesel_locomotives = {}
  3. dlxtrains_diesel_locomotives.S = minetest.get_translator(mod_name)
  4. dlxtrains_diesel_locomotives.max_wagon_length = 100 -- A large number to represent "unlimited"
  5. if minetest.get_modpath( "dlxtrains" ) and dlxtrains then
  6. dlxtrains_diesel_locomotives.max_wagon_length = dlxtrains.max_wagon_length
  7. end
  8. local mod_path = minetest.get_modpath(mod_name)
  9. dofile(mod_path.."/items.lua")
  10. dofile(mod_path.."/locomotives.lua")
  11. dofile(mod_path.."/locomotive_recipes.lua")