projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a6050e
)
Remove undeclared writing variable
author
kilbith
<kilbith@users.noreply.github.com>
Fri, 6 Mar 2015 10:43:54 +0000
(11:43 +0100)
committer
BlockMen
<nmuelll@web.de>
Fri, 6 Mar 2015 10:49:22 +0000
(11:49 +0100)
mods/beds/spawns.lua
patch
|
blob
|
history
diff --git
a/mods/beds/spawns.lua
b/mods/beds/spawns.lua
index 39da21c2eced1e4b7b377396946e4e919cd61fa9..6e087f8229fa712a7cb4f91e0d778c889654723b 100644
(file)
--- 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()