diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2017-05-19 07:45:47 +0200 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-05-19 07:45:47 +0200 |
commit | 674400523e10624ae8320b0d18a05dbfd6dcac42 (patch) | |
tree | 952662707e04d276ee8b68dc30c81f29c7519d4c /builtin/mainmenu/modmgr.lua | |
parent | e25a38e3fbb156ae2bc72cc66aef014ae3963407 (diff) | |
download | minetest-674400523e10624ae8320b0d18a05dbfd6dcac42.tar.gz minetest-674400523e10624ae8320b0d18a05dbfd6dcac42.tar.bz2 minetest-674400523e10624ae8320b0d18a05dbfd6dcac42.zip |
Mainmenu: Fix issues while trying to enable all mods (#5770)
Diffstat (limited to 'builtin/mainmenu/modmgr.lua')
-rw-r--r-- | builtin/mainmenu/modmgr.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin/mainmenu/modmgr.lua b/builtin/mainmenu/modmgr.lua index 14d29272e..dee048982 100644 --- a/builtin/mainmenu/modmgr.lua +++ b/builtin/mainmenu/modmgr.lua @@ -252,7 +252,7 @@ function modmgr.render_modlist(render_list) break end end - elseif v.typ == "game_mod" or v.typ == "game" then + elseif v.is_game_content then color = mt_color_blue elseif v.enabled then color = mt_color_green @@ -417,12 +417,14 @@ function modmgr.preparemodlist(data) -- Add title retval[#retval + 1] = { typ = "game", + is_game_content = true, name = fgettext("Subgame Mods") } end for i=1,#game_mods,1 do game_mods[i].typ = "game_mod" + game_mods[i].is_game_content = true retval[#retval + 1] = game_mods[i] end |