summaryrefslogtreecommitdiff
path: root/pipeworks
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-06-03 19:16:56 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-06-03 19:27:18 -0400
commit842a6d94916296912aba934b2b23d59244ea463b (patch)
tree20b92c24d2887296a3506c62233534a0e459c426 /pipeworks
parentdf2f0076c553c42c5ef4d2d2fbaff58b0ef8e4fd (diff)
downloaddreambuilder_modpack-842a6d94916296912aba934b2b23d59244ea463b.tar
dreambuilder_modpack-842a6d94916296912aba934b2b23d59244ea463b.tar.gz
dreambuilder_modpack-842a6d94916296912aba934b2b23d59244ea463b.tar.bz2
dreambuilder_modpack-842a6d94916296912aba934b2b23d59244ea463b.tar.xz
dreambuilder_modpack-842a6d94916296912aba934b2b23d59244ea463b.zip
update castle, colormachine, moreblocks, pipeworks, tpr, and digilines
Diffstat (limited to 'pipeworks')
-rw-r--r--pipeworks/init.lua8
1 files changed, 5 insertions, 3 deletions
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