forked from mtcontrib/pipeworks
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:
parent
10bfa30b93
commit
32f331e7c4
4
init.lua
4
init.lua
@ -16,8 +16,8 @@ pipeworks.modpath = minetest.get_modpath("pipeworks")
|
|||||||
dofile(pipeworks.modpath.."/default_settings.txt")
|
dofile(pipeworks.modpath.."/default_settings.txt")
|
||||||
|
|
||||||
-- Read the external config file if it exists.
|
-- Read the external config file if it exists.
|
||||||
local worldsettingspath = pipeworks.worldpath.."/pipeworks_settings.txt","r"
|
local worldsettingspath = pipeworks.worldpath.."/pipeworks_settings.txt"
|
||||||
local worldsettingsfile = io.open(worldsettingspath)
|
local worldsettingsfile = io.open(worldsettingspath, "r")
|
||||||
if worldsettingsfile then
|
if worldsettingsfile then
|
||||||
worldsettingsfile:close()
|
worldsettingsfile:close()
|
||||||
dofile(worldsettingspath)
|
dofile(worldsettingspath)
|
||||||
|
Loading…
Reference in New Issue
Block a user