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
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
tv_main:set_global_event_handler(main_event_handler)
- if PLATFORM == "Android" then
- tv_main:set_fixed_size(false)
- else
+ tv_main:set_fixed_size(false)
+
+ if not (PLATFORM == "Android") then
tv_main:set_tab(core.setting_get("maintab_LAST"))
end
ui.set_default("maintab")