blockgame/mods/bg_api/util_stringify.lua
trans_soup a2ab91c992 fix math.random usage.
fix usage of `math.random` in various places to provide both a minimum
and a maximum number, instead of just maximum.

also renamed some files very slightly.
2023-10-13 13:17:14 +02:00

11 lines
250 B
Lua

function blockgame.stringify (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