From b82af22a05125ed9751202f913b00a909d28b930 Mon Sep 17 00:00:00 2001 From: ClobberXD Date: Tue, 27 Nov 2018 00:59:20 +0530 Subject: [PATCH] Allow .git in map dirs --- mods/ctf_map/schem_map.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/ctf_map/schem_map.lua b/mods/ctf_map/schem_map.lua index bcc0c46..9faadd2 100644 --- a/mods/ctf_map/schem_map.lua +++ b/mods/ctf_map/schem_map.lua @@ -58,7 +58,8 @@ local function search_for_maps() if extension == "mts" then files_hash[dir .. "/" .. filename] = true else - if extension ~= "conf" and extension ~= "md" then + if extension ~= "conf" and extension ~= "md" + and files[i] ~= ".git" then error("Map extension is not '.mts': " .. files[i]) end end