mirror of
https://github.com/theFox6/microexpansion.git
synced 2024-08-20 05:04:09 +02:00
15 lines
427 B
Lua
15 lines
427 B
Lua
|
-- microexpansion/init.lua
|
||
|
microexpansion = {}
|
||
|
microexpansion.modpath = minetest.get_modpath("microexpansion") -- modpath
|
||
|
local modpath = microexpansion.modpath -- modpath pointer
|
||
|
|
||
|
-- logger
|
||
|
function microexpansion.log(content, log_type)
|
||
|
if not content then return false end
|
||
|
if log_type == nil then log_type = "action" end
|
||
|
minetest.log(log_type, "[MicroExpansion] "..content)
|
||
|
end
|
||
|
|
||
|
-- Load API
|
||
|
dofile(modpath.."/api.lua")
|