diff options
author | Auke Kok <sofar@foo-projects.org> | 2016-05-27 17:37:56 -0700 |
---|---|---|
committer | Auke Kok <sofar@foo-projects.org> | 2016-05-27 17:37:56 -0700 |
commit | 32f331e7c4de3c5e130eff55ede475f9b212463a (patch) | |
tree | 86f88459fd7c5c7e139cfdb90f0570814f25daa8 | |
parent | 10bfa30b93a896c8c4a565ef3b9984c76ab4b592 (diff) | |
download | pipeworks-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.
-rw-r--r-- | init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |