local function visualize(table, prep) local ret = "" if prep == nil then prep = "-" end for i, k in pairs(table) do if type(k) == "table" then ret = ret .. prep .. i .. "\n" .. visualize(k, prep .. prep) else ret = ret .. prep .. i .. " " .. tostring(k) .. "\n" end end return ret end function sparktech.debug(thing) if type(thing) == "table" then minetest.debug(visualize(thing)) else minetest.debug(thing) end end