mcl_vegan/mcl_vegan_utils/debug.lua

10 lines
307 B
Lua

function mcl_vegan.stringify_table (tab)
local result = "{ "
for key, value in pairs(tab) do
if type(key) == "table" then key = stringify_table(key) end
if type(value) == "table" then value = stringify_table(value) end
result = result .. key .. " = " .. value .. ", "
end
return result .. "}"
end