diff options
author | rubenwardy <rw@rubenwardy.com> | 2022-05-14 18:24:35 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2022-05-14 18:24:46 +0100 |
commit | 2785dcbbbf6cff38949c70b0780d19e1c1a7935d (patch) | |
tree | 103e8acdc6cd6adfcbdf477616b652bbe7739c61 /builtin | |
parent | 9b03bd324361a65eb33f384f7a9d7696d314f194 (diff) | |
download | minetest-2785dcbbbf6cff38949c70b0780d19e1c1a7935d.tar.gz minetest-2785dcbbbf6cff38949c70b0780d19e1c1a7935d.tar.bz2 minetest-2785dcbbbf6cff38949c70b0780d19e1c1a7935d.zip |
Fix broken dependency enabling due to missing `enabled` field
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/mainmenu/pkgmgr.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/mainmenu/pkgmgr.lua b/builtin/mainmenu/pkgmgr.lua index 93505b733..23f24d617 100644 --- a/builtin/mainmenu/pkgmgr.lua +++ b/builtin/mainmenu/pkgmgr.lua @@ -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 |