From 727f63fe31a63797543d8fd7cb8922df1a9fd2e6 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 17 Jul 2015 19:42:53 +0100 Subject: [PATCH] Remove unneeded log messages --- ctf/core.lua | 2 -- ctf_flag/init.lua | 5 +---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/ctf/core.lua b/ctf/core.lua index e270e07..83a50ca 100644 --- a/ctf/core.lua +++ b/ctf/core.lua @@ -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 diff --git a/ctf_flag/init.lua b/ctf_flag/init.lua index 51e81b7..07a6068 100644 --- a/ctf_flag/init.lua +++ b/ctf_flag/init.lua @@ -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