diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2022-09-12 19:24:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-12 19:24:54 +0200 |
commit | bc3dccca5c66019dfbd218f39f086f7384f97d88 (patch) | |
tree | d61879776c3a0a79ef985f5fc431b3c3568b32af /builtin/common | |
parent | fe13f9dfd12c0a7f08355b83e34e7dec1bfdd86d (diff) | |
download | minetest-bc3dccca5c66019dfbd218f39f086f7384f97d88.tar.xz |
Mainmenu: Properly sort mods and games (#12758)
This also removes trivial and unused pkgmgr functions
Fixes a bug caused by sorting in 2133fc8
Diffstat (limited to 'builtin/common')
-rw-r--r-- | builtin/common/misc_helpers.lua | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/builtin/common/misc_helpers.lua b/builtin/common/misc_helpers.lua index 467f18804..720df3998 100644 --- a/builtin/common/misc_helpers.lua +++ b/builtin/common/misc_helpers.lua @@ -519,18 +519,6 @@ end -------------------------------------------------------------------------------- -- mainmenu only functions -------------------------------------------------------------------------------- -if INIT == "mainmenu" then - function core.get_game(index) - local games = core.get_games() - - if index > 0 and index <= #games then - return games[index] - end - - return nil - end -end - if core.gettext then -- for client and mainmenu function fgettext_ne(text, ...) text = core.gettext(text) |