mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Set server_announce to world.mt and respect modes when changing subgame
This commit is contained in:
@@ -38,6 +38,14 @@ local function singleplayer_refresh_gamebar()
|
||||
core.set_topleft_text(gamemgr.games[j].name)
|
||||
core.setting_set("menu_last_game",gamemgr.games[j].id)
|
||||
menudata.worldlist:set_filtercriteria(gamemgr.games[j].id)
|
||||
local index = filterlist.get_current_index(menudata.worldlist,
|
||||
tonumber(core.setting_get("mainmenu_last_selected_world")))
|
||||
local selected = core.get_textlist_index("sp_worlds")
|
||||
if not index or index < 1 then
|
||||
index = math.min(core.get_textlist_index("sp_worlds"),
|
||||
#menudata.worldlist:get_list())
|
||||
end
|
||||
menu_worldmt_legacy(index)
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user