1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-12-16 23:25:28 +01:00

Updated beds' mod to hide warning messages

- Global variable `writing` removed
- License update
This commit is contained in:
LeMagnesium
2015-03-12 18:42:18 +01:00
parent f9ebbc93dc
commit a0a7485ae4
4 changed files with 12 additions and 21 deletions

View File

@@ -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()