1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00

Basic Lan Implmentation

This commit is contained in:
DustyBagel 2024-06-21 16:33:44 -05:00
parent bc23a610d3
commit f03922f218
26 changed files with 1414 additions and 2 deletions

View file

@ -153,6 +153,14 @@ local function fetch_geoip()
end
function serverlistmgr.sync()
if minetest.settings:get("serverlist_lan") then
if core.ask_lan_servers then --This checks if the function exists before running it.
core.ask_lan_servers();
else
print("core.ask_lan_servers isn't defined.")
end
end
if not serverlistmgr.servers then
serverlistmgr.servers = {{
name = fgettext("Loading..."),