aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Glize <vincentglize@hotmail.fr>2017-06-29 07:53:44 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-06-29 07:53:44 +0200
commit367d218f2b8c9d5fa754875407bd52c6bff771a7 (patch)
tree20fa99a8918ddd02bd87b85dd045bf38f9c5a508
parent6d2833a8879b5dd64936991bf2a3e407f26357a7 (diff)
downloadminetest-367d218f2b8c9d5fa754875407bd52c6bff771a7.tar.gz
minetest-367d218f2b8c9d5fa754875407bd52c6bff771a7.tar.bz2
minetest-367d218f2b8c9d5fa754875407bd52c6bff771a7.zip
Change the server description after a search (#6074)
-rw-r--r--builtin/mainmenu/tab_online.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/mainmenu/tab_online.lua b/builtin/mainmenu/tab_online.lua
index ab23a4b7c..90228b110 100644
--- a/builtin/mainmenu/tab_online.lua
+++ b/builtin/mainmenu/tab_online.lua
@@ -295,6 +295,7 @@ local function main_button_handler(tabview, fields, name, tabdata)
local first_server = search_result[1]
core.settings:set("address", first_server.address)
core.settings:set("remote_port", first_server.port)
+ gamedata.serverdescription = first_server.description
end
return true
end