mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-30 19:13:53 +01:00
wea.format.map: use tostring on values to avoid crashes
This commit is contained in:
parent
239113d415
commit
ad8d8eab6b
@ -4,7 +4,7 @@
|
|||||||
function worldeditadditions.format.map(map)
|
function worldeditadditions.format.map(map)
|
||||||
local result = {}
|
local result = {}
|
||||||
for key, value in pairs(map) do
|
for key, value in pairs(map) do
|
||||||
table.insert(result, key.."\t"..value)
|
table.insert(result, key.."\t"..tostring(value))
|
||||||
end
|
end
|
||||||
return table.concat(result, "\n")
|
return table.concat(result, "\n")
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user