From: Vanessa Ezekowitz Date: Tue, 9 Apr 2013 04:32:15 +0000 (-0400) Subject: forgot to test if the file can be read the second time the mod is run. X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=85e07fb787104b055fd24b7856d1de35d7e4120c;p=zefram%2Fminetest%2Fmoretrees.git forgot to test if the file can be read the second time the mod is run. Should be fixed now. --- 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")