mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 04:51:40 +09:00
Fixed game.table_to_json error
This commit is contained in:
@@ -254,7 +254,7 @@ end
|
|||||||
-- @tparam table lua_table the table to convert
|
-- @tparam table lua_table the table to convert
|
||||||
-- @treturn string the table in a json format
|
-- @treturn string the table in a json format
|
||||||
function table.json(lua_table)
|
function table.json(lua_table)
|
||||||
if game and game.table_to_json then return game.table_to_json(lua_table) end
|
--if game and game.table_to_json then return game.table_to_json(lua_table) end
|
||||||
local result, done, only_indexs = {}, {}, true
|
local result, done, only_indexs = {}, {}, true
|
||||||
for key,value in ipairs(lua_table) do
|
for key,value in ipairs(lua_table) do
|
||||||
done[key] = true
|
done[key] = true
|
||||||
|
|||||||
Reference in New Issue
Block a user