mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2024-11-15 23:10:18 +01:00
35 lines
794 B
Lua
35 lines
794 B
Lua
local modname = minetest.get_current_modname()
|
|
local modpath = minetest.get_modpath(modname)
|
|
local S = minetest.get_translator(modname)
|
|
|
|
stairs = {
|
|
version = {3, 0, 0},
|
|
fork = "minetest_mods",
|
|
|
|
modname = modname,
|
|
modpath = modpath,
|
|
|
|
S = S,
|
|
|
|
has = {
|
|
default = minetest.get_modpath("default"),
|
|
i3 = minetest.get_modpath("i3"),
|
|
stairs = minetest.get_modpath("stairs"),
|
|
unified_inventory = minetest.get_modpath("unified_inventory"),
|
|
},
|
|
|
|
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,
|
|
}
|
|
|
|
stairs.dofile("settings")
|
|
stairs.dofile("util")
|
|
stairs.dofile("legacy")
|
|
stairs.dofile("api")
|
|
stairs.dofile("compat")
|