summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-12-17 20:27:46 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-12-17 20:27:46 -0500
commitdfed550cae5baa07258ebb743a3e3dd5f6b76168 (patch)
treed4484614b564622a3cb02e4430666dba827b5d6a /init.lua
parent41ce9be8f35539c0144bfc6272782039b7bc9048 (diff)
downloadpipeworks-dfed550cae5baa07258ebb743a3e3dd5f6b76168.tar
pipeworks-dfed550cae5baa07258ebb743a3e3dd5f6b76168.tar.gz
pipeworks-dfed550cae5baa07258ebb743a3e3dd5f6b76168.tar.bz2
pipeworks-dfed550cae5baa07258ebb743a3e3dd5f6b76168.tar.xz
pipeworks-dfed550cae5baa07258ebb743a3e3dd5f6b76168.zip
don't write pipeworks config file anymore. if a user needs one, they can
create it themselves :-)
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua17
1 files changed, 1 insertions, 16 deletions
diff --git a/init.lua b/init.lua
index 178864a..4fa1871 100644
--- a/init.lua
+++ b/init.lua
@@ -17,22 +17,7 @@ pipeworks.modpath = minetest.get_modpath("pipeworks")
dofile(pipeworks.modpath.."/default_settings.txt")
-if io.open(pipeworks.worldpath.."/pipeworks_settings.txt","r") == nil then
-
- io.input(pipeworks.modpath.."/default_settings.txt")
- io.output(pipeworks.worldpath.."/pipeworks_settings.txt")
-
- local size = 2^13 -- good buffer size (8K)
- while true do
- local block = io.read(size)
- if not block then
- io.close()
- break
- end
- io.write(block)
- end
-
-else
+if io.open(pipeworks.worldpath.."/pipeworks_settings.txt","r") ~= nil then
dofile(pipeworks.worldpath.."/pipeworks_settings.txt")
end