Fix handling of missing auth.txt in the new handler

This commit is contained in:
Perttu Ahola 2012-03-30 23:12:01 +03:00
parent 462003363f
commit 29110d5428
1 changed files with 2 additions and 1 deletions

View File

@ -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