1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Builtin: Fix subgame mod selection (#5367)

This commit is contained in:
SmallJoker
2017-05-17 19:31:57 +02:00
committed by GitHub
parent 0443620c5e
commit 9b5effffbb
2 changed files with 12 additions and 9 deletions

View File

@@ -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