From: sapier Date: Sun, 21 Jul 2013 20:10:58 +0000 (+0200) Subject: Fix enable mod/enable button not shown on entering world config dialog X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=4f3bc05a5b08457549608ae8947e8e7292190a9c;p=zefram%2Fminetest%2Fminetest_engine.git Fix enable mod/enable button not shown on entering world config dialog --- diff --git a/builtin/modmgr.lua b/builtin/modmgr.lua index c4bc4044..20128737 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)