wea.format.map: use tostring on values to avoid crashes

This commit is contained in:
Starbeamrainbowlabs 2021-07-03 14:44:59 +01:00
parent 239113d415
commit ad8d8eab6b
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2

@ -4,7 +4,7 @@
function worldeditadditions.format.map(map)
local result = {}
for key, value in pairs(map) do
table.insert(result, key.."\t"..value)
table.insert(result, key.."\t"..tostring(value))
end
return table.concat(result, "\n")
end