summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua11
1 files changed, 8 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index d3ffd74..1aca354 100644
--- a/init.lua
+++ b/init.lua
@@ -21,12 +21,17 @@ areas:load()
minetest.register_privilege("areas", {description = "Can administer areas"})
if not minetest.registered_privileges[areas.self_protection_privilege] then
- minetest.register_privilege(areas.self_protection_privilege,
- {description = "Can protect areas"})
+ minetest.register_privilege(areas.self_protection_privilege, {
+ description = "Can protect areas",
+ })
+end
+
+for _, area in pairs(areas.areas) do
+ area.id = nil
end
if minetest.setting_getbool("log_mod") then
local diffTime = os.clock() - areas.startTime
- print("[areas] loaded in "..diffTime.."s.")
+ minetest.log("action", "areas loaded in "..diffTime.."s.")
end