Fix serverdescription and name not beeing saved to local serverlist
authorsapier <Sapier at GMX dot net>
Fri, 12 Jul 2013 18:43:51 +0000 (20:43 +0200)
committerPilzAdam <pilzadam@minetest.net>
Fri, 12 Jul 2013 20:46:27 +0000 (22:46 +0200)
builtin/mainmenu.lua

index b752add6e108592c8037374ef1005b978e2b0006..ee33161175b5964882fdc4718250558e5db33cf0 100644 (file)
@@ -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