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