mod-pbmarks/init.lua
2021-07-04 16:55:47 -07:00

32 lines
463 B
Lua

pbmarks = {}
pbmarks.modname = core.get_current_modname()
pbmarks.modpath = core.get_modpath(pbmarks.modname)
function pbmarks.log(lvl, msg)
if not msg then
msg = lvl
lvl = nil
end
msg = "[" .. pbmarks.modname .. "] " .. msg
if not lvl then
core.log(msg)
else
core.log(lvl, msg)
end
end
local scripts = {
"settings",
"api",
"formspec",
"chat",
"ui",
}
for _, scr in ipairs(scripts) do
dofile(pbmarks.modpath .. "/" .. scr .. ".lua")
end