mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 06:32:23 +01:00
Main menu: show favorite removal button for offline servers (#15530)
This fixes a regression from 6c324cb871d.
This commit is contained in:
parent
9f71e74158
commit
d123bc0951
@ -93,6 +93,11 @@ local function find_selected_server()
|
|||||||
return server
|
return server
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
for _, server in ipairs(serverlistmgr.get_favorites()) do
|
||||||
|
if server.address == address and server.port == port then
|
||||||
|
return server
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local function get_formspec(tabview, name, tabdata)
|
local function get_formspec(tabview, name, tabdata)
|
||||||
|
Loading…
Reference in New Issue
Block a user