From 0b1e15bf4d5976061f9b273ad74bea49f5fa47a3 Mon Sep 17 00:00:00 2001 From: Duane Date: Fri, 1 Jul 2016 15:47:26 -0500 Subject: [PATCH] Correct close calls. --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 302b70d..0faa1f9 100644 --- a/init.lua +++ b/init.lua @@ -38,7 +38,7 @@ local inp = io.open(fun_caves.world..'/fun_caves_data.txt','r') if inp then local d = inp:read('*a') fun_caves.db = minetest.deserialize(d) - inp.close() + inp:close() end if not fun_caves.db then fun_caves.db = {} @@ -160,7 +160,7 @@ minetest.register_on_shutdown(function() if out then print('Fun Caves: Saving database at shutdown') out:write(minetest.serialize(fun_caves.db)) - out.close() + out:close() end end)