Skip to content

Commit

Permalink
Remove undeclared writing variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kilbith authored and BlockMen committed Mar 6, 2015
1 parent 2a6050e commit 86e0e4b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mods/beds/spawns.lua
Expand Up @@ -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()
Expand Down

0 comments on commit 86e0e4b

Please sign in to comment.