From 9b5effffbb0599f85014b53c3fd025b6a8222e02 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Wed, 17 May 2017 19:31:57 +0200 Subject: Builtin: Fix subgame mod selection (#5367) --- builtin/common/filterlist.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'builtin/common') 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 -- cgit v1.2.3