14 lines
281 B
Lua
14 lines
281 B
Lua
|
local stringify = function (tab)
|
||
|
if type(tab) == "table" then
|
||
|
local result = "{ "
|
||
|
for key, value in pairs(tab) do
|
||
|
result = result .. key .. ": " .. blockgame.stringify(value) .. ", "
|
||
|
end
|
||
|
return result .. "}"
|
||
|
else
|
||
|
return tab
|
||
|
end
|
||
|
end
|
||
|
|
||
|
blockgame.stringify = stringify
|