mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2024-11-15 23:10:18 +01:00
31 lines
652 B
Lua
31 lines
652 B
Lua
local modname = minetest.get_current_modname()
|
|
local modpath = minetest.get_modpath(modname)
|
|
local S = minetest.get_translator(modname)
|
|
|
|
invsaw = {
|
|
version = {3, 0, 0},
|
|
fork = "minetest_mods",
|
|
|
|
modname = modname,
|
|
modpath = modpath,
|
|
|
|
S = S,
|
|
|
|
log = function(level, messagefmt, ...)
|
|
return minetest.log(level, ("[%s] %s"):format(modname, messagefmt:format(...)))
|
|
end,
|
|
|
|
dofile = function(...)
|
|
return dofile(table.concat({modpath, ...}, DIR_DELIM) .. ".lua")
|
|
end,
|
|
}
|
|
|
|
invsaw.users = {}
|
|
|
|
invsaw.dofile("settings")
|
|
invsaw.dofile("privs")
|
|
invsaw.dofile("api")
|
|
invsaw.dofile("inventory")
|
|
invsaw.dofile("formspec")
|
|
invsaw.dofile("unified_inventory")
|