Valentin Anger 0e4cf52a31 Isolated tablet and d_block from sparkdebug init - Closes #4 and #5
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
2017-01-02 19:55:47 +01:00

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")