9c94d96fb9
create utilities for: - loading files. - changing drops of existing nodes. - registering crops.
9 lines
307 B
Lua
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
|