From 40cd31db20e51e876595d102f54f032134ac6af2 Mon Sep 17 00:00:00 2001 From: sapier Date: Thu, 19 Jun 2014 22:03:49 +0200 Subject: [PATCH] Fix broken serverdescription in multiplayer tab --- builtin/mainmenu/tab_multiplayer.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/builtin/mainmenu/tab_multiplayer.lua b/builtin/mainmenu/tab_multiplayer.lua index e8aad42..d2d8727 100644 --- a/builtin/mainmenu/tab_multiplayer.lua +++ b/builtin/mainmenu/tab_multiplayer.lua @@ -40,10 +40,11 @@ local function get_formspec(tabview, name, tabdata) "pwdfield[9.3,4.5;2.5,0.5;te_pwd;]" .. "textarea[9.3,0.25;2.5,2.75;;" - if menudata.fav_selected ~= nil and - menudata.favorites[menu.fav_selected].description ~= nil then + if tabdata.fav_selected ~= nil and + menudata.favorites[tabdata.fav_selected] ~= nil and + menudata.favorites[tabdata.fav_selected].description ~= nil then retval = retval .. - core.formspec_escape(menu.favorites[menu.fav_selected].description,true) + core.formspec_escape(menudata.favorites[tabdata.fav_selected].description,true) end retval = retval ..