[antum] Load 'api.lua' script separately
This commit is contained in:
parent
893f984926
commit
1ee19c2fae
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user