From b66e2a117fde51b91616cebb775611c060ce98e9 Mon Sep 17 00:00:00 2001 From: Michieal Date: Thu, 9 Feb 2023 18:24:45 -0500 Subject: [PATCH] fix json reading error. --- mods/ITEMS/mcl_maps/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_maps/init.lua b/mods/ITEMS/mcl_maps/init.lua index 9db300470..62e3ec7b0 100644 --- a/mods/ITEMS/mcl_maps/init.lua +++ b/mods/ITEMS/mcl_maps/init.lua @@ -24,7 +24,7 @@ minetest.mkdir(map_textures_path) local function load_json_file(name) 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() return data end