aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2013-07-12 20:43:51 +0200
committerPilzAdam <pilzadam@minetest.net>2013-07-12 22:46:27 +0200
commit7dbbbfc665e285cc9eb9d750c3a449d7da178d4f (patch)
treec697df3f4a833fc8efab47c99cf5dd0c2fb8101b
parentac7a44792c77747e60beb1e8215fcd4976aa3b06 (diff)
downloadminetest-7dbbbfc665e285cc9eb9d750c3a449d7da178d4f.tar.gz
minetest-7dbbbfc665e285cc9eb9d750c3a449d7da178d4f.tar.bz2
minetest-7dbbbfc665e285cc9eb9d750c3a449d7da178d4f.zip
Fix serverdescription and name not beeing saved to local serverlist
-rw-r--r--builtin/mainmenu.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/builtin/mainmenu.lua b/builtin/mainmenu.lua
index b752add6e..ee3316117 100644
--- a/builtin/mainmenu.lua
+++ b/builtin/mainmenu.lua
@@ -642,6 +642,11 @@ function tabbuilder.handle_multiplayer_buttons(fields)
gamedata.serverdescription = menu.favorites[event.index].description
end
+ if menu.favorites ~= nil then
+ gamedata.servername = menu.favorites[event.index].name
+ gamedata.serverdescription = menu.favorites[event.index].description
+ end
+
if gamedata.address ~= nil and
gamedata.port ~= nil then