2017-02-09 07:08:29 +01:00
|
|
|
-- 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")
|
2017-02-09 07:29:04 +01:00
|
|
|
|
|
|
|
-- Load storage devices
|
|
|
|
dofile(modpath.."/storage.lua")
|
2017-02-09 16:37:14 +01:00
|
|
|
|
|
|
|
-- Load machines
|
|
|
|
dofile(modpath.."/machines.lua")
|