don't write pipeworks config file anymore. if a user needs one, they can
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Wed, 18 Dec 2013 01:27:46 +0000 (20:27 -0500)
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Wed, 18 Dec 2013 01:27:46 +0000 (20:27 -0500)
create it themselves :-)

init.lua

index 178864a65d53c3bd32a02b44a50b7ef8d013492a..4fa187198a4becf7aea424e699ce60a3804d3c6b 100644 (file)
--- 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