apply by and the patch in mantis 9218 and change it. (Untested)

This commit is contained in:
UbitUmarov
2025-10-06 00:06:24 +01:00
parent 13ec0b9221
commit ca11a13f97
2 changed files with 52 additions and 19 deletions

View File

@@ -491,9 +491,7 @@ namespace OpenSim.Region.Framework.Scenes
List<Scene> sceneList = Scenes;
foreach (Scene scene in sceneList)
{
avatar = scene.GetScenePresence(avatarId);
if (avatar != null && !avatar.IsChildAgent)
if (scene.TryGetSceneRootPresence(avatarId, out avatar))
return true;
}