Further justification of min buid dist from flags

This commit is contained in:
rubenwardy 2015-11-26 22:00:15 +00:00
parent a914b43439
commit 99d55c798a

View File

@ -75,7 +75,9 @@ function minetest.is_protected(pos, name)
local tname, distsq = ctf_flag.get_nearest(pos) local tname, distsq = ctf_flag.get_nearest(pos)
if distsq < rs then if distsq < rs then
minetest.chat_send_player(name, minetest.chat_send_player(name,
"Too close to the flag! You need to be at least " .. r .. " nodes away.") "Too close to the to build! You need to be at least " .. r .. " nodes away.")
minetest.chat_send_player(name,
"This is to stop new or respawning players from being trapped.")
return true return true
else else
return old_is_protected(pos, name) return old_is_protected(pos, name)