mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Attempt at fixing the HG home jump by looking up hyperlink regions before grid-local regions.
This commit is contained in:
@@ -121,9 +121,9 @@ namespace OpenSim.Region.Communications.Hypergrid
|
||||
|
||||
public override RegionInfo RequestNeighbourInfo(ulong regionHandle)
|
||||
{
|
||||
RegionInfo info = m_remoteBackend.RequestNeighbourInfo(regionHandle);
|
||||
RegionInfo info = base.RequestNeighbourInfo(regionHandle);
|
||||
if (info == null)
|
||||
info = base.RequestNeighbourInfo(regionHandle);
|
||||
info = m_remoteBackend.RequestNeighbourInfo(regionHandle);
|
||||
return info;
|
||||
}
|
||||
|
||||
|
||||
@@ -283,7 +283,7 @@ namespace OpenSim.Region.Environment.Scenes.Hypergrid
|
||||
// if (teleport success) // seems to be always success here
|
||||
// the user may change their profile information in other region,
|
||||
// so the userinfo in UserProfileCache is not reliable any more, delete it
|
||||
if (avatar.Scene.NeedSceneCacheClear(avatar.UUID))
|
||||
if (avatar.Scene.NeedSceneCacheClear(avatar.UUID) || isHyperLink)
|
||||
{
|
||||
m_commsProvider.UserProfileCacheService.RemoveUser(avatar.UUID);
|
||||
m_log.InfoFormat("[HGSceneCommService]: User {0} is going to another region, profile cache removed", avatar.UUID);
|
||||
|
||||
Reference in New Issue
Block a user