mirror of
https://github.com/minetest/minetest.git
synced 2024-12-02 20:43:45 +01:00
Fix crash in tab_online when cURL is disabled
This commit is contained in:
parent
1d64e6537c
commit
b28749057a
@ -47,6 +47,15 @@ function serverlistmgr.sync()
|
|||||||
}}
|
}}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local serverlist_url = core.settings:get("serverlist_url") or ""
|
||||||
|
if not core.get_http_api or serverlist_url == "" then
|
||||||
|
serverlistmgr.servers = {{
|
||||||
|
name = fgettext("Public server list is disabled"),
|
||||||
|
description = ""
|
||||||
|
}}
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
if public_downloading then
|
if public_downloading then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user