forgot to test if the file can be read the second time the mod is run.
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Tue, 9 Apr 2013 04:32:15 +0000 (00:32 -0400)
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Tue, 9 Apr 2013 04:32:15 +0000 (00:32 -0400)
Should be fixed now.

init.lua

index d36baf4c62710826cec7631752fed5eca7fb1797..90768ab78524a71e03dc86dded7f654ec7162ea1 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -37,9 +37,10 @@ if io.open(worldpath.."/moretrees_settings.txt","r") == nil then
                if not block then break end
                io.write(block)
        end
-end
 
-dofile(worldpath.."/moretrees_settings.txt")
+else
+       dofile(worldpath.."/moretrees_settings.txt")
+end
 
 dofile(modpath.."/tree_models.lua")
 dofile(modpath.."/biome_defs.lua")