From c94e9cdb9a9e95403c22135cee19c13d30d459b0 Mon Sep 17 00:00:00 2001 From: mckaygerhard Date: Sun, 2 Jun 2024 21:16:09 -0400 Subject: [PATCH] remove stupid advertise about older servers --- builtin/mainmenu/tab_online.lua | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/builtin/mainmenu/tab_online.lua b/builtin/mainmenu/tab_online.lua index 297292ffb..bc4b363a3 100644 --- a/builtin/mainmenu/tab_online.lua +++ b/builtin/mainmenu/tab_online.lua @@ -382,21 +382,16 @@ local function main_button_handler(tabview, fields, name, tabdata) if fav_idx and fav_idx <= #serverlist and fav.address == gamedata.address and fav.port == gamedata.port then - if not is_server_protocol_compat_or_error( - fav.proto_min, fav.proto_max) then - return true - elseif fav.proto_max and fav.proto_max < 37 and not is_favorite(fav) then - local dlg = create_outdated_server_dlg(fav) - dlg:set_parent(tabview) - tabview:hide() - dlg:show() - return true - end serverlistmgr.add_favorite(fav) gamedata.servername = fav.name gamedata.serverdescription = fav.description + + if not is_server_protocol_compat_or_error( + fav.proto_min, fav.proto_max) then + return true + end else gamedata.servername = "" gamedata.serverdescription = ""