From 29110d5428825d95ea7d2c083cd5a899f1d75104 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Fri, 30 Mar 2012 23:12:01 +0300 Subject: 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 34bda8245..7b39effb2 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 -- cgit v1.2.3