Fix dumb error with file closure.

This commit is contained in:
Duane 2016-07-01 15:46:19 -05:00
parent 1eb6658a15
commit ee590db95e

View file

@ -71,7 +71,7 @@ minetest.register_globalstep(function(dtime)
local out = io.open(fun_caves.world..'/fun_caves_data.txt','w') local out = io.open(fun_caves.world..'/fun_caves_data.txt','w')
if out then if out then
out:write(minetest.serialize(fun_caves.db)) out:write(minetest.serialize(fun_caves.db))
out.close() out:close()
end end
-- Promote mobs based on spawn position -- Promote mobs based on spawn position