mapcleaner/init.lua

29 lines
702 B
Lua
Raw Normal View History

local storage = minetest.get_mod_storage()
2019-12-29 18:46:07 +01:00
mapcleaner = {
storage = storage,
2019-12-30 20:34:50 +01:00
-- step interval
step_interval = tonumber(storage:get("step_interval") or "1.0"),
2019-12-30 20:34:50 +01:00
-- above that lag the process is stopped
max_lag = tonumber(storage:get("max_lag") or "1.5"),
2019-12-30 20:34:50 +01:00
-- time usage per step
max_time_usage = tonumber(storage:get("max_time_usage") or "50000"),
2020-01-07 13:03:29 +01:00
-- run state
2020-01-08 07:41:11 +01:00
run = (storage:get("run") or "0") == "1"
2019-12-29 18:46:07 +01:00
}
2019-12-23 20:46:03 +01:00
2019-12-29 17:56:55 +01:00
local MP = minetest.get_modpath("mapcleaner")
2019-12-23 20:46:03 +01:00
2019-12-29 17:56:55 +01:00
dofile(MP .. "/functions.lua")
dofile(MP .. "/protection.lua")
2020-01-07 12:35:50 +01:00
dofile(MP .. "/presence.lua")
2019-12-29 17:56:55 +01:00
dofile(MP .. "/generated.lua")
2019-12-29 21:13:14 +01:00
dofile(MP .. "/max_lag.lua")
2019-12-29 17:56:55 +01:00
dofile(MP .. "/delete.lua")
dofile(MP .. "/chat.lua")
2019-12-29 18:46:07 +01:00
dofile(MP .. "/globalstep.lua")