forked from your-land/yl_cinema
Fix parse_json
This commit is contained in:
parent
3331c46b0a
commit
0de157ba4e
@ -16,11 +16,11 @@ end
|
||||
-- JSON decoder
|
||||
local parse_json
|
||||
if json == yl_cinema.error or json == nil then
|
||||
local function parse_json(json_str)
|
||||
parse_json = function(json_str)
|
||||
return minetest.parse_json(json_str)
|
||||
end
|
||||
else
|
||||
local function parse_json(json_str)
|
||||
parse_json = function(json_str)
|
||||
return json.decode(json_str)
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user