[antum] Load 'api.lua' script separately

This commit is contained in:
AntumDeluge 2017-06-20 16:25:09 -07:00
parent 893f984926
commit 1ee19c2fae

View File

@ -35,12 +35,16 @@ if minetest.settings:get_bool('log_mods') then
end
-- Load API functions first
dofile(antum.modpath .. '/api.lua')
-- Other scripts to load
local scripts = {
'api',
'items',
'crafting',
}
for I in pairs(scripts) do
dofile(antum.modpath .. '/' .. scripts[I] .. '.lua')
for index, script_name in pairs(scripts) do
antum.loadScript(script_name)
end