diff options
author | ROllerozxa <temporaryemail4meh+github@gmail.com> | 2022-07-17 15:45:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-17 14:45:30 +0100 |
commit | f090471022513401257e132334d03ee6c10aafa7 (patch) | |
tree | cebf87b33ba00ff0f585ba20dc758ab874af694e /builtin/mainmenu/common.lua | |
parent | 4648d8f4997963ac050f356b664a07caadd66587 (diff) | |
download | minetest-f090471022513401257e132334d03ee6c10aafa7.tar.xz |
Enable the gamebar on Android (#12354)
Diffstat (limited to 'builtin/mainmenu/common.lua')
-rw-r--r-- | builtin/mainmenu/common.lua | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/builtin/mainmenu/common.lua b/builtin/mainmenu/common.lua index dcccb2b2a..81e28f2bb 100644 --- a/builtin/mainmenu/common.lua +++ b/builtin/mainmenu/common.lua @@ -125,18 +125,12 @@ os.tmpname = function() end -------------------------------------------------------------------------------- -function menu_render_worldlist(show_gameid) +function menu_render_worldlist() local retval = {} local current_worldlist = menudata.worldlist:get_list() - local row for i, v in ipairs(current_worldlist) do - row = v.name - if show_gameid == nil or show_gameid == true then - row = row .. " [" .. v.gameid .. "]" - end - retval[#retval+1] = core.formspec_escape(row) - + retval[#retval+1] = core.formspec_escape(v.name) end return table.concat(retval, ",") |