Remove debug error printing from ctf_map

This commit is contained in:
rubenwardy 2019-01-09 17:34:51 +00:00 committed by GitHub
parent 29927d8d01
commit 2bf00d37b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,8 +74,6 @@ local function search_for_maps()
local val = minetest.settings:get("ctf.maps." .. key:gsub("%./", ""):gsub("/", ".")) local val = minetest.settings:get("ctf.maps." .. key:gsub("%./", ""):gsub("/", "."))
if not conf:get_bool("disabled", false) and val ~= "false" then if not conf:get_bool("disabled", false) and val ~= "false" then
table.insert(ctf_map.available_maps, key) table.insert(ctf_map.available_maps, key)
else
minetest.log("error", key .. " disabled!")
end end
end end
if next(ctf_map.available_maps) == nil then if next(ctf_map.available_maps) == nil then
@ -83,7 +81,6 @@ local function search_for_maps()
end end
return ctf_map.available_maps return ctf_map.available_maps
end end
print(dump(search_for_maps()))
minetest.register_chatcommand("maps_reload", { minetest.register_chatcommand("maps_reload", {
privs = { ctf_admin = true }, privs = { ctf_admin = true },