Skip to content

Commit

Permalink
Fix broken dependency enabling due to missing enabled field
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy committed May 14, 2022
1 parent 9b03bd3 commit 2785dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/mainmenu/pkgmgr.lua
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ function pkgmgr.enable_mod(this, toset)
core.log("warning", "Mod dependency \"" .. name ..
"\" not found!")
else
if mod_to_enable.enabled == false then
if not mod_to_enable.enabled then
mod_to_enable.enabled = true
toggled_mods[#toggled_mods+1] = mod_to_enable.name
end
Expand Down

0 comments on commit 2785dcb

Please sign in to comment.