mcl_vegan/mcl_vegan_utils/debug.lua
trans_soup 9c94d96fb9 create mcl_vegan_utils mod.
create utilities for:

- loading files.
- changing drops of existing nodes.
- registering crops.
2023-07-16 23:37:28 +02:00

9 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