From 842a6d94916296912aba934b2b23d59244ea463b Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 3 Jun 2016 19:16:56 -0400 Subject: update castle, colormachine, moreblocks, pipeworks, tpr, and digilines --- pipeworks/init.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'pipeworks') diff --git a/pipeworks/init.lua b/pipeworks/init.lua index 92ce02c..499f6ba 100644 --- a/pipeworks/init.lua +++ b/pipeworks/init.lua @@ -16,9 +16,11 @@ 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() +local worldsettingspath = pipeworks.worldpath.."/pipeworks_settings.txt" +local worldsettingsfile = io.open(worldsettingspath, "r") +if worldsettingsfile then + worldsettingsfile:close() + dofile(worldsettingspath) end -- Random variables -- cgit v1.2.3