summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-04-09 00:32:15 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-04-09 00:32:15 -0400
commit85e07fb787104b055fd24b7856d1de35d7e4120c (patch)
tree283095b032eb0661c62e6c17ecd2448748767d8c
parent8a1ebec9513535f6f8f4488599eb7ca5560ead96 (diff)
forgot to test if the file can be read the second time the mod is run.
Should be fixed now.
-rw-r--r--init.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index d36baf4..90768ab 100644
--- 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")