mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Builtin: Fix subgame mod selection (#5367)
This commit is contained in:
parent
0443620c5e
commit
9b5effffbb
2 changed files with 12 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue