Don't make passing arguments this complex.

This shouldn't be this complex. For me, both syntaxes work,
but I bet it breaks others.
This commit is contained in:
Auke Kok 2016-05-27 17:37:56 -07:00
parent 10bfa30b93
commit 32f331e7c4

View File

@ -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)