Signed-off-by: Craig Robbins <kde.psych@gmail.com>
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
porting::setExternalStorageDir(porting::jnienv);
if (!fs::PathExists(porting::path_user)) {
success = fs::CreateDir(porting::path_user);
+ } else {
+ success = true;
}
porting::copyAssets();
#else