1
0
Fork 0

fix json reading error.

This commit is contained in:
Michieal 2023-02-09 18:24:45 -05:00 committed by ancientmarinerdev
parent 09ef5fd96b
commit b66e2a117f
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ minetest.mkdir(map_textures_path)
local function load_json_file(name) local function load_json_file(name)
local file = assert(io.open(modpath .. "/" .. name .. ".json", "r")) local file = assert(io.open(modpath .. "/" .. name .. ".json", "r"))
local data = minetest.parse_json(file:read()) local data = minetest.parse_json(file:read("*all"))
file:close() file:close()
return data return data
end end