From 484b7532eb9b778fc2d7d16d1a6dc84838af87a2 Mon Sep 17 00:00:00 2001 From: VorTechnix <45538536+VorTechnix@users.noreply.github.com> Date: Wed, 30 Jun 2021 11:59:19 -0700 Subject: [PATCH] fixed table.tostring --- worldeditadditions/utils/tables/table_tostring.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/worldeditadditions/utils/tables/table_tostring.lua b/worldeditadditions/utils/tables/table_tostring.lua index e6e8250..89f9b80 100644 --- a/worldeditadditions/utils/tables/table_tostring.lua +++ b/worldeditadditions/utils/tables/table_tostring.lua @@ -9,12 +9,12 @@ local function table_tostring(tbl, sep, new_line) local ret = {} if type(tbl) ~= "table" then return "Error: input not table!" end for key,value in pairs(tbl) do - ret:append(key) - ret:append(sep) - ret:append(value) - ret:append(new_line) + table.insert(ret,key) + table.insert(ret,sep) + table.insert(ret,value) + table.insert(ret,new_line) end - return ret:concat("") + return table.concat(ret,"") end return table_tostring