forked from Mirrorlandia_minetest/minetest
Main menu: Fix automatic dependency enables on doubleclick
When mods were toggled by double-click, the hard dependencies were no longer enabled automatically. However, the 'Enabled' checkbox did still work. This commit restores the behaviour as seen before commit c401a06
This commit is contained in:
parent
42839fa1db
commit
7c321ad7f5
@ -435,6 +435,7 @@ function pkgmgr.enable_mod(this, toset)
|
||||
local toggled_mods = {}
|
||||
local enabled_mods = {}
|
||||
toggle_mod_or_modpack(list, toggled_mods, enabled_mods, toset, mod)
|
||||
toset = mod.enabled -- Update if toggled
|
||||
|
||||
if not toset then
|
||||
-- Mod(s) were disabled, so no dependencies need to be enabled
|
||||
|
Loading…
Reference in New Issue
Block a user