init.lua 395 B

12345678910111213141516171819202122
  1. teleports = {}
  2. teleports.modpath = minetest.get_modpath("teleports")
  3. -- Support for live reloading.
  4. if minetest.get_modpath("reload") then
  5. local c = "teleports:core"
  6. local f = teleports.modpath .. "/functions.lua"
  7. reload.register_file(c, f)
  8. else
  9. local f = teleports.modpath .. "/functions.lua"
  10. dofile(f)
  11. end
  12. dofile(teleports.modpath .. "/nodes.lua")
  13. teleports.load()