Remove undeclared writing variable
authorkilbith <kilbith@users.noreply.github.com>
Fri, 6 Mar 2015 10:43:54 +0000 (11:43 +0100)
committerBlockMen <nmuelll@web.de>
Fri, 6 Mar 2015 10:49:22 +0000 (11:49 +0100)
mods/beds/spawns.lua

index 39da21c2eced1e4b7b377396946e4e919cd61fa9..6e087f8229fa712a7cb4f91e0d778c889654723b 100644 (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()