From 32f331e7c4de3c5e130eff55ede475f9b212463a Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Fri, 27 May 2016 17:37:56 -0700 Subject: [PATCH] Don't make passing arguments this complex. This shouldn't be this complex. For me, both syntaxes work, but I bet it breaks others. --- init.lua | 4 ++-- 1 file 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)