diff options
author | sapier <Sapier at GMX dot net> | 2013-07-21 22:10:58 +0200 |
---|---|---|
committer | PilzAdam <pilzadam@minetest.net> | 2013-07-22 18:10:00 +0200 |
commit | 4f3bc05a5b08457549608ae8947e8e7292190a9c (patch) | |
tree | 3a8e0a731f97323592be74c5b9e69466db7158c4 /builtin/modmgr.lua | |
parent | b3db44f8013118f6950a45eb36a06312e869a452 (diff) | |
download | minetest-4f3bc05a5b08457549608ae8947e8e7292190a9c.tar.gz minetest-4f3bc05a5b08457549608ae8947e8e7292190a9c.tar.bz2 minetest-4f3bc05a5b08457549608ae8947e8e7292190a9c.zip |
Fix enable mod/enable button not shown on entering world config dialog
Diffstat (limited to 'builtin/modmgr.lua')
-rw-r--r-- | builtin/modmgr.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/builtin/modmgr.lua b/builtin/modmgr.lua index c4bc40448..20128737a 100644 --- a/builtin/modmgr.lua +++ b/builtin/modmgr.lua @@ -396,10 +396,7 @@ function modmgr.dialog_configure_world() "button[7.4,6.35;2,0.5;btn_config_world_cancel;Cancel]" if engine.setting_get("old_style_mod_selection") == "true" then - local selected = engine.get_textlist_index("world_config_modlist") - local mod = filterlist.get_list(modmgr.modlist)[selected] - - if mod ~= nil then + if mod ~= nil and mod.name ~= "" then if mod.is_modpack then local rawlist = filterlist.get_raw_list(modmgr.modlist) |