Remove unneeded log messages
This commit is contained in:
parent
9196eec940
commit
727f63fe31
@ -243,7 +243,6 @@ end
|
||||
minetest.after(10, ctf.check_save)
|
||||
|
||||
function ctf.save()
|
||||
ctf.log("io", "Saving CTF state...")
|
||||
local file = io.open(minetest.get_worldpath().."/ctf.txt", "w")
|
||||
ctf.needs_save = false
|
||||
if file then
|
||||
@ -264,7 +263,6 @@ function ctf.save()
|
||||
|
||||
file:write(minetest.serialize(out))
|
||||
file:close()
|
||||
ctf.log("io", "Saved.")
|
||||
else
|
||||
ctf.error("io", "CTF file failed to save!")
|
||||
end
|
||||
|
@ -223,7 +223,6 @@ function ctf_flag.delete(team, pos)
|
||||
end
|
||||
|
||||
function ctf_flag.assert_flags()
|
||||
ctf.log("flag", "Checking flags...")
|
||||
for tname, team in pairs(ctf.teams) do
|
||||
ctf_flag.assert_flags_team(tname)
|
||||
end
|
||||
@ -235,14 +234,12 @@ function ctf_flag.assert_flags_team(tname)
|
||||
return false
|
||||
end
|
||||
|
||||
ctf.log("flag", " - of "..tname)
|
||||
|
||||
for i=1, #team.flags do
|
||||
local flag = team.flags[i]
|
||||
minetest.get_voxel_manip(flag, { x = flag.x + 1, y = flag.y + 1, z = flag.z + 1})
|
||||
local nodename = minetest.get_node(flag).name
|
||||
if nodename ~= "ctf_flag:flag" then
|
||||
ctf.log("flag", " - found " .. nodename .. ", correcting...")
|
||||
ctf.log("flag", tname .. " has wrong node at flag position, " .. nodename .. ", correcting...")
|
||||
minetest.set_node(flag, { name = "ctf_flag:flag"})
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user