Fix handling of missing auth.txt in the new handler
parent
462003363f
commit
29110d5428
|
@ -1177,7 +1177,8 @@ local function read_auth_file()
|
||||||
local newtable = {}
|
local newtable = {}
|
||||||
local file, errmsg = io.open(minetest.auth_file_path, 'rb')
|
local file, errmsg = io.open(minetest.auth_file_path, 'rb')
|
||||||
if not file then
|
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
|
end
|
||||||
for line in file:lines() do
|
for line in file:lines() do
|
||||||
if line ~= "" then
|
if line ~= "" then
|
||||||
|
|
Loading…
Reference in New Issue