diff --git a/mods/ctf_map/schem_map.lua b/mods/ctf_map/schem_map.lua index 2df31b1..953274e 100644 --- a/mods/ctf_map/schem_map.lua +++ b/mods/ctf_map/schem_map.lua @@ -71,8 +71,8 @@ local function search_for_maps() for key, _ in pairs(files_hash) do local conf = Settings(mapdir .. "/" .. key .. ".conf") minetest.log("error", "ctf.maps." .. key:gsub("%./", ""):gsub("/", ".")) - if not conf:get_bool("disabled", false) and - minetest.settings:get_bool("ctf.maps." .. key:gsub("%./", ""):gsub("/", "."), true) then + local val = minetest.settings:get("ctf.maps." .. key:gsub("%./", ""):gsub("/", ".")) + if not conf:get_bool("disabled", false) and val ~= "false" then table.insert(ctf_map.available_maps, key) else minetest.log("error", key .. " disabled!")