From ad8d8eab6bb662662827c4db6cf2e7249801bf6d Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sat, 3 Jul 2021 14:44:59 +0100 Subject: [PATCH] wea.format.map: use tostring on values to avoid crashes --- worldeditadditions/utils/format/map.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldeditadditions/utils/format/map.lua b/worldeditadditions/utils/format/map.lua index 57f1fc1..62a71ef 100644 --- a/worldeditadditions/utils/format/map.lua +++ b/worldeditadditions/utils/format/map.lua @@ -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