diff --git a/cleanup.lua b/cleanup.lua new file mode 100644 index 0000000..aa46134 --- /dev/null +++ b/cleanup.lua @@ -0,0 +1,10 @@ + +function do_cleanup() + for _, player in ipairs(minetest.get_connected_players()) do + -- TODO: cleanup + end + + minetest.after(10, do_cleanup) +end + +minetest.after(10, do_cleanup) diff --git a/init.lua b/init.lua index 4810eb8..bfbca8f 100644 --- a/init.lua +++ b/init.lua @@ -8,5 +8,6 @@ locator = { dofile(MP.."/beacon.lua") dofile(MP.."/functions.lua") dofile(MP.."/radar.lua") +dofile(MP.."/cleanup.lua") print("[OK] Locator")