mirror of
https://github.com/minetest/minetest.git
synced 2025-03-01 08:04:41 +01:00
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:
@ -435,6 +435,7 @@ function pkgmgr.enable_mod(this, toset)
|
|||||||
local toggled_mods = {}
|
local toggled_mods = {}
|
||||||
local enabled_mods = {}
|
local enabled_mods = {}
|
||||||
toggle_mod_or_modpack(list, toggled_mods, enabled_mods, toset, mod)
|
toggle_mod_or_modpack(list, toggled_mods, enabled_mods, toset, mod)
|
||||||
|
toset = mod.enabled -- Update if toggled
|
||||||
|
|
||||||
if not toset then
|
if not toset then
|
||||||
-- Mod(s) were disabled, so no dependencies need to be enabled
|
-- Mod(s) were disabled, so no dependencies need to be enabled
|
||||||
|
Reference in New Issue
Block a user