projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3db44f
)
Fix enable mod/enable button not shown on entering world config dialog
author
sapier
<Sapier at GMX dot net>
Sun, 21 Jul 2013 20:10:58 +0000
(22:10 +0200)
committer
PilzAdam
<pilzadam@minetest.net>
Mon, 22 Jul 2013 16:10:00 +0000
(18:10 +0200)
builtin/modmgr.lua
patch
|
blob
|
history
diff --git
a/builtin/modmgr.lua
b/builtin/modmgr.lua
index c4bc404488b85015d387a08596ec39fc596c7840..20128737afe960502c4d7d7d82ae13fd7c8d0c98 100644
(file)
--- 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)