Skip to content

Commit 4f3bc05

Browse files
sapierPilzAdam
sapier
authored andcommittedJul 22, 2013
Fix enable mod/enable button not shown on entering world config dialog
1 parent b3db44f commit 4f3bc05

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed
 

‎builtin/modmgr.lua

+1-4
Original file line numberDiff line numberDiff line change
@@ -396,10 +396,7 @@ function modmgr.dialog_configure_world()
396396
"button[7.4,6.35;2,0.5;btn_config_world_cancel;Cancel]"
397397

398398
if engine.setting_get("old_style_mod_selection") == "true" then
399-
local selected = engine.get_textlist_index("world_config_modlist")
400-
local mod = filterlist.get_list(modmgr.modlist)[selected]
401-
402-
if mod ~= nil then
399+
if mod ~= nil and mod.name ~= "" then
403400
if mod.is_modpack then
404401
local rawlist = filterlist.get_raw_list(modmgr.modlist)
405402

0 commit comments

Comments
 (0)