1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 08:35:20 +02:00

Fixed mainmenu lua errors because of changes in get_textlist_index

Fixed lua error when none of the worlds or servers selected are and connect,
delete or configure buttons used.
This commit is contained in:
Dániel Varga
2014-01-16 22:16:43 +01:00
committed by BlockMen
parent b11b48ec07
commit 66b24cc9ff
2 changed files with 20 additions and 17 deletions

View File

@@ -1067,7 +1067,7 @@ function modmgr.get_global_mod(idx)
return nil
end
if idx < 1 or idx > filterlist.size(modmgr.global_mods) then
if idx == nil or idx < 1 or idx > filterlist.size(modmgr.global_mods) then
return nil
end