23 lines
679 B
Lua
23 lines
679 B
Lua
local mod_start_time = core.get_us_time()
|
|
core.log("action", "[MOD] hidden_doors loading")
|
|
|
|
hidden_doors = {}
|
|
|
|
local modpath = core.get_modpath("hidden_doors")
|
|
|
|
if core.settings:get_bool("hidden_doors.painted", false) or
|
|
core.settings:get_bool("hidden_doors_painted", false) -- backwards compat
|
|
then
|
|
hidden_doors.painted = true
|
|
end
|
|
|
|
dofile(modpath .. "/api.lua")
|
|
|
|
if core.settings:get_bool("hidden_doors.make_registrations", true) then
|
|
dofile(modpath .. "/registrations.lua")
|
|
end
|
|
|
|
dofile(modpath .. "/compatibility.lua")
|
|
|
|
local mod_end_time = (core.get_us_time() - mod_start_time) / 1000000
|
|
core.log("action", "[MOD] hidden_doors loaded in [" .. mod_end_time .. "s]") |