diff options
Diffstat (limited to 'builtin/mainmenu')
-rw-r--r-- | builtin/mainmenu/init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/mainmenu/init.lua b/builtin/mainmenu/init.lua index 6ad2aa88a..e58208336 100644 --- a/builtin/mainmenu/init.lua +++ b/builtin/mainmenu/init.lua @@ -97,7 +97,7 @@ local function init_globals() local found_singleplayerworld = false - for world in pairs(world_list) do + for i,world in pairs(world_list) do if world.name == "singleplayerworld" then found_singleplayerworld = true gamedata.worldindex = i @@ -110,10 +110,10 @@ local function init_globals() local world_list = core.get_worlds() - for world in pairs(world_list) do + for i,world in pairs(world_list) do if world.name == "singleplayerworld" then gamedata.worldindex = i - return + break end end end |