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:
parent
bc23a610d3
commit
f03922f218
26 changed files with 1414 additions and 2 deletions
|
@ -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..."),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue