From 177966013a7796c84036d23259fd2e6c7837ad63 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Tue, 17 Dec 2013 20:36:21 -0500 Subject: [PATCH] close the file handle after checking if the config file exists, add a comment --- init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init.lua b/init.lua index 7173e65..414edc4 100644 --- a/init.lua +++ b/init.lua @@ -17,8 +17,10 @@ pipeworks.modpath = minetest.get_modpath("pipeworks") dofile(pipeworks.modpath.."/default_settings.txt") +-- Read the external config file if it exists. if io.open(pipeworks.worldpath.."/pipeworks_settings.txt","r") then dofile(pipeworks.worldpath.."/pipeworks_settings.txt") + io.close() end -- Random variables -- 2.30.2