forked from minetest/minetest_game
Remove undeclared writing variable
This commit is contained in:
parent
2a6050e552
commit
86e0e4b2bf
|
@ -41,13 +41,11 @@ function beds.save_spawns()
|
||||||
if not beds.spawn then
|
if not beds.spawn then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
writing = true
|
|
||||||
local output = io.open(org_file, "w")
|
local output = io.open(org_file, "w")
|
||||||
for i, v in pairs(beds.spawn) do
|
for i, v in pairs(beds.spawn) do
|
||||||
output:write(v.x.." "..v.y.." "..v.z.." "..i.."\n")
|
output:write(v.x.." "..v.y.." "..v.z.." "..i.."\n")
|
||||||
end
|
end
|
||||||
io.close(output)
|
io.close(output)
|
||||||
writing = false
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function beds.set_spawns()
|
function beds.set_spawns()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user