Builtin: Fix grayed-out but enabled modpacks
authorSmallJoker <mk939@ymail.com>
Sat, 9 Feb 2019 20:32:39 +0000 (21:32 +0100)
committerSmallJoker <mk939@ymail.com>
Sat, 9 Feb 2019 20:54:39 +0000 (21:54 +0100)
builtin/mainmenu/pkgmgr.lua

index d85092457dd6f83d7e993bda23afa414b8a61076..60a4960937a6bc33e71c7bd09ff1384d03e46849 100644 (file)
@@ -305,7 +305,7 @@ function pkgmgr.render_packagelist(render_list)
 
                        for j = 1, #rawlist, 1 do
                                if rawlist[j].modpack == list[i].name and
-                                               rawlist[j].enabled ~= true then
+                                               not rawlist[j].enabled then
                                        -- Modpack not entirely enabled so showing as grey
                                        color = mt_color_grey
                                        break