diff --git a/builtin/mainmenu/tab_local.lua b/builtin/mainmenu/tab_local.lua index 75d7e79f..1ee093ae 100644 --- a/builtin/mainmenu/tab_local.lua +++ b/builtin/mainmenu/tab_local.lua @@ -106,6 +106,7 @@ local function main_button_handler(this, fields, name, tabdata) if fields["play"] ~= nil or world_doubleclick or fields["key_enter"] then local selected = core.get_textlist_index("sp_worlds") gamedata.selected_world = menudata.worldlist:get_raw_index(selected) + core.settings:set_bool("auto_connect", false) if core.settings:get_bool("enable_server") then if selected ~= nil and gamedata.selected_world ~= 0 then @@ -114,7 +115,6 @@ local function main_button_handler(this, fields, name, tabdata) gamedata.port = fields["te_serverport"] gamedata.address = "" - core.settings:set_bool("auto_connect", false) core.settings:set("port",gamedata.port) if fields["te_serveraddr"] ~= nil then core.settings:set("bind_address",fields["te_serveraddr"])