mirror of
https://github.com/minetest-mods/areas.git
synced 2025-07-21 00:50:27 +02:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
8
init.lua
8
init.lua
@ -7,11 +7,15 @@ areas = {}
|
||||
areas.factions_available = minetest.get_modpath("playerfactions") and true
|
||||
|
||||
areas.adminPrivs = {areas=true}
|
||||
areas.startTime = os.clock()
|
||||
local startTime = os.clock()
|
||||
|
||||
areas.modpath = minetest.get_modpath("areas")
|
||||
dofile(areas.modpath.."/settings.lua")
|
||||
dofile(areas.modpath.."/api.lua")
|
||||
|
||||
local async_dofile = core.register_async_dofile or dofile
|
||||
async_dofile(areas.modpath.."/async.lua")
|
||||
|
||||
dofile(areas.modpath.."/internal.lua")
|
||||
dofile(areas.modpath.."/chatcommands.lua")
|
||||
dofile(areas.modpath.."/pos.lua")
|
||||
@ -43,6 +47,6 @@ if not minetest.registered_privileges[areas.config.self_protection_privilege] th
|
||||
end
|
||||
|
||||
if minetest.settings:get_bool("log_mods") then
|
||||
local diffTime = os.clock() - areas.startTime
|
||||
local diffTime = os.clock() - startTime
|
||||
minetest.log("action", "areas loaded in "..diffTime.."s.")
|
||||
end
|
||||
|
Reference in New Issue
Block a user