diff --git a/mods/ctf/ctf_flag/init.lua b/mods/ctf/ctf_flag/init.lua index 7755523..f459541 100644 --- a/mods/ctf/ctf_flag/init.lua +++ b/mods/ctf/ctf_flag/init.lua @@ -77,9 +77,9 @@ end local old_is_protected = minetest.is_protected local r = ctf.setting("flag.nobuild_radius") local rs = r * r -function minetest.is_protected(pos, name) +function minetest.is_protected(pos, name, ...) if r <= 0 or rs == 0 then - return old_is_protected(pos, name) + return old_is_protected(pos, name, ...) end local flag, distSQ = ctf_flag.get_nearest(pos) @@ -88,7 +88,7 @@ function minetest.is_protected(pos, name) "Too close to the flag to build! Leave at least " .. r .. " blocks around the flag.") return true else - return old_is_protected(pos, name) + return old_is_protected(pos, name, ...) end end diff --git a/mods/ctf/ctf_map/ctf_map_core/barrier.lua b/mods/ctf/ctf_map/ctf_map_core/barrier.lua index d39b9d5..0176bf7 100644 --- a/mods/ctf/ctf_map/ctf_map_core/barrier.lua +++ b/mods/ctf/ctf_map/ctf_map_core/barrier.lua @@ -214,9 +214,9 @@ end if minetest.get_modpath("ctf") then local old_is_protected = minetest.is_protected - function minetest.is_protected(pos, name) + function minetest.is_protected(pos, name, ...) if ctf_match.build_timer <= 0 then - return old_is_protected(pos, name) + return old_is_protected(pos, name, ...) end local tname = ctf.player(name).team @@ -225,7 +225,7 @@ if minetest.get_modpath("ctf") then minetest.chat_send_player(name, "Can't dig beyond the barrier!") return true else - return old_is_protected(pos, name) + return old_is_protected(pos, name, ...) end end