From 2601a44b0e65415a20ac495dc1beefd03db5831b Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sun, 12 Nov 2017 01:41:18 +0000 Subject: [PATCH] Extend flag no build area to include floor --- ctf_flag/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctf_flag/init.lua b/ctf_flag/init.lua index 93de501..6591405 100644 --- a/ctf_flag/init.lua +++ b/ctf_flag/init.lua @@ -86,7 +86,7 @@ function minetest.is_protected(pos, name) end local flag, distSQ = ctf_flag.get_nearest(pos) - if flag and pos.y >= flag.y and distSQ < rs then + if flag and pos.y >= flag.y - 1 and distSQ < rs then minetest.chat_send_player(name, "Too close to the flag to build! Leave at least " .. r .. " blocks around the flag.") return true