summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorAuke Kok <sofar@foo-projects.org>2016-05-27 17:37:56 -0700
committerAuke Kok <sofar@foo-projects.org>2016-05-27 17:37:56 -0700
commit32f331e7c4de3c5e130eff55ede475f9b212463a (patch)
tree86f88459fd7c5c7e139cfdb90f0570814f25daa8 /init.lua
parent10bfa30b93a896c8c4a565ef3b9984c76ab4b592 (diff)
downloadpipeworks-32f331e7c4de3c5e130eff55ede475f9b212463a.tar
pipeworks-32f331e7c4de3c5e130eff55ede475f9b212463a.tar.gz
pipeworks-32f331e7c4de3c5e130eff55ede475f9b212463a.tar.bz2
pipeworks-32f331e7c4de3c5e130eff55ede475f9b212463a.tar.xz
pipeworks-32f331e7c4de3c5e130eff55ede475f9b212463a.zip
Don't make passing arguments this complex.
This shouldn't be this complex. For me, both syntaxes work, but I bet it breaks others.
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 8593fdb..499f6ba 100644
--- a/init.lua
+++ b/init.lua
@@ -16,8 +16,8 @@ pipeworks.modpath = minetest.get_modpath("pipeworks")
dofile(pipeworks.modpath.."/default_settings.txt")
-- Read the external config file if it exists.
-local worldsettingspath = pipeworks.worldpath.."/pipeworks_settings.txt","r"
-local worldsettingsfile = io.open(worldsettingspath)
+local worldsettingspath = pipeworks.worldpath.."/pipeworks_settings.txt"
+local worldsettingsfile = io.open(worldsettingspath, "r")
if worldsettingsfile then
worldsettingsfile:close()
dofile(worldsettingspath)