do not consider a hyperlink a fallback region

This commit is contained in:
UbitUmarov
2021-12-06 23:41:39 +00:00
parent 257664d62c
commit 8b28668b28
2 changed files with 16 additions and 14 deletions

View File

@@ -804,11 +804,9 @@ namespace OpenSim.Services.LLLoginService
List<GridRegion> regions = m_GridService.GetFallbackRegions(scopeID, (int)Util.RegionToWorldLoc(1000), (int)Util.RegionToWorldLoc(1000));
if (regions != null && regions.Count > 0)
{
hyperlinks = m_GridService.GetHyperlinks(scopeID);
IEnumerable<GridRegion> availableRegions = regions.Except(hyperlinks);
if (availableRegions.Count() > 0)
return availableRegions.ElementAt(0);
return regions[0];
}
// No fallbacks, try to find an arbitrary region that is not a hyperlink
// maxNumber is fixed for now; maybe use some search pattern with increasing maxSize here?
regions = m_GridService.GetRegionsByName(scopeID, "", 10);