From: kilbith Date: Fri, 6 Mar 2015 10:43:54 +0000 (+0100) Subject: Remove undeclared writing variable X-Git-Tag: 0.4.13~99 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=86e0e4b2bfaf876efd1d009349d6fb8cf2342dca;p=oweals%2Fminetest_game.git Remove undeclared writing variable --- diff --git a/mods/beds/spawns.lua b/mods/beds/spawns.lua index 39da21c2..6e087f82 100644 --- a/mods/beds/spawns.lua +++ b/mods/beds/spawns.lua @@ -41,13 +41,11 @@ function beds.save_spawns() if not beds.spawn then return end - writing = true local output = io.open(org_file, "w") for i, v in pairs(beds.spawn) do output:write(v.x.." "..v.y.." "..v.z.." "..i.."\n") end io.close(output) - writing = false end function beds.set_spawns()