forked from Mirrorlandia_minetest/minetest
Fix menu crash due to lack of favourites list
This commit is contained in:
parent
9056c163a7
commit
2625323f25
@ -139,6 +139,12 @@ local function main_button_handler(tabview, fields, name, tabdata)
|
|||||||
fav_idx = 1
|
fav_idx = 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if menudata.favorites == nil or
|
||||||
|
menudata.favorites[fav_idx] == nil then
|
||||||
|
tabdata.fav_selected = 0
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
|
||||||
local address = menudata.favorites[fav_idx].address
|
local address = menudata.favorites[fav_idx].address
|
||||||
local port = menudata.favorites[fav_idx].port
|
local port = menudata.favorites[fav_idx].port
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user