diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2017-05-17 19:31:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-17 19:31:57 +0200 |
commit | 9b5effffbb0599f85014b53c3fd025b6a8222e02 (patch) | |
tree | 861b8b64a74af0e5da6bc90a00d3423d466d7f56 /builtin/common | |
parent | 0443620c5e699b02f8521ff8da7cff2e89ce4c5a (diff) | |
download | minetest-9b5effffbb0599f85014b53c3fd025b6a8222e02.tar.gz minetest-9b5effffbb0599f85014b53c3fd025b6a8222e02.tar.bz2 minetest-9b5effffbb0599f85014b53c3fd025b6a8222e02.zip |
Builtin: Fix subgame mod selection (#5367)
Diffstat (limited to 'builtin/common')
-rw-r--r-- | builtin/common/filterlist.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin/common/filterlist.lua b/builtin/common/filterlist.lua index 2a62362e3..562231192 100644 --- a/builtin/common/filterlist.lua +++ b/builtin/common/filterlist.lua @@ -289,6 +289,9 @@ function sort_mod_list(self) table.sort(self.m_processed_list, function(a, b) -- Show game mods at bottom if a.typ ~= b.typ then + if b.typ == "game" then + return a.typ ~= "game_mod" + end return b.typ == "game_mod" end -- If in same or no modpack, sort by name |