From f09a3a427e9a3958ed1aa83ac70985c80a3005dd Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Fri, 30 Mar 2012 23:12:01 +0300 Subject: [PATCH] Fix handling of missing auth.txt in the new handler --- builtin/builtin.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builtin/builtin.lua b/builtin/builtin.lua index 34bda82..7b39eff 100644 --- a/builtin/builtin.lua +++ b/builtin/builtin.lua @@ -1177,7 +1177,8 @@ local function read_auth_file() local newtable = {} local file, errmsg = io.open(minetest.auth_file_path, 'rb') if not file then - error(minetest.auth_file_path.." could not be opened for reading: "..errmsg) + minetest.log("info", minetest.auth_file_path.." could not be opened for reading ("..errmsg.."); assuming new world") + return end for line in file:lines() do if line ~= "" then