Remove unnessesary table print function, minetest has a nicer one
This commit is contained in:
parent
ace37afacf
commit
1c342844e2
@ -1,22 +0,0 @@
|
|||||||
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
|
|
Loading…
x
Reference in New Issue
Block a user