init.lua 420 B

1234567891011121314151617181920
  1. reboot = reboot or {}
  2. reboot.modpath = minetest.get_modpath("reboot")
  3. -- Support for 'reload', so the server operator can modify the reboot code
  4. -- even while the server is running, if that becomes necessary.
  5. dofile(reboot.modpath .. "/reboot.lua")
  6. if not reboot.run_once then
  7. local c = "reboot:core"
  8. local f = reboot.modpath .. "/init.lua"
  9. reload.register_file(c, f, false)
  10. reboot.run_once = true
  11. end