Reduced the amount of global data: - The last command is stored in the tablet item metadata Limited tablet an tablet and multimeter stack size to 1
19 lines
573 B
Lua
19 lines
573 B
Lua
minetest.debug("sparkdebug init")
|
|
|
|
local NAME = minetest.get_current_modname()
|
|
local PATH = minetest.get_modpath(NAME) .."/"
|
|
local MODFILES = minetest.get_dir_list(PATH,false)
|
|
|
|
for i=1,table.getn(MODFILES),1
|
|
do
|
|
if (string.find(MODFILES[i],".lua",-4)) then
|
|
if (MODFILES[i] ~= "init.lua") then
|
|
minetest.debug(NAME ..": module " .. string.sub(MODFILES[i],1,-5) .. " Loading...")
|
|
dofile(PATH .. MODFILES[i])
|
|
minetest.debug(NAME ..": module " .. string.sub(MODFILES[i],1,-5) .. " Loaded!")
|
|
end
|
|
end
|
|
end
|
|
|
|
minetest.debug("sparkdebug init complete")
|