Fix broken dependency enabling due to missing `enabled` field

This commit is contained in:
rubenwardy 2022-05-14 18:24:35 +01:00
parent 9b03bd3243
commit 2785dcbbbf
1 changed files with 1 additions and 1 deletions

View File

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